Route server IPv6 avoid_martians

Job Snijders job at
Fri Aug 21 01:08:40 CEST 2015

On Thu, Aug 20, 2015 at 05:57:15PM -0500, Jonathan Stewart wrote:
> I want to ask a question: do any of these rules define an overall
> prefix length accepted? A statement like "accept a /8 to a /48"? How
> would i write this type of rule?

You could match on it with something along the lines of:

    function avoid_too_long_or_too_short()
    prefix set boundry;
        boundry = [ ::/0{8,48} ];
        if net ~ boundry then return true;
        return false

And later on use:

    if !(avoid_too_long_or_too_short()) then reject;

Kind regards,


More information about the Bird-users mailing list