[PATCH] filter: Add .srclen attribute to filter on source prefix length
santiago at crfreenet.org
Wed May 16 11:27:20 CEST 2018
On Sun, May 13, 2018 at 10:59:51PM +0200, Toke Høiland-Jørgensen wrote:
> This adds a new attribute to expose the source prefix length in the same
> way as the destination prefix length, via a new .srclen attribute.
I generalized the patch and merged that - instead of 'srclen' it adds
'src' operator that returns source prefix, so it is possible to use
net.src.len, net.src.ip, or just net.src in expressions.
Also note that new filter operators must be also added to i_same() function.
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users