[PATCH] filter: Add .srclen attribute to filter on source prefix length

Toke Høiland-Jørgensen toke at toke.dk
Wed May 16 11:43:31 CEST 2018


Ondrej Zajicek <santiago at crfreenet.org> writes:

> 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.
>
> Hi
>
> 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.

Ah, yes, that is better of course. Thanks!

> Also note that new filter operators must be also added to i_same()
> function.

Noted :)

-Toke



More information about the Bird-users mailing list