input filter function <NULL>

Arjan Filius iafilius at xs4all.nl
Thu May 27 09:45:28 CEST 2010


Hello bird-users,

another question, using bird 1.2.2

defined a function:
function bgp_in(int peeras)
{
         # enforce the presence of the peer AS as the first AS of the path
         if !(bgp_path.first = peeras) then return false;
         # basic sanity checks
         if (invalid_prefix()) then return false;
         return true;
}

invalid_prefix() is another function

started to use the function like:
# definition
define MYNEIGBORDEFINITIONAS =  xxxx;

in the bgp protocol definition:
         import where bgp_in(MYNEIGBORDEFINITIONAS);
         export filter bgp_out;

now, when i do a "birdc# show protocols all" i see a:
   Input filter:   <NULL>
   Output filter:  bgp_out


I wasn't expecting a <NULL> here.
Is that usual for a function in import, or is it because i do something 
wrong?

Thanks in advance,


-- 
Arjan Filius
mailto:iafilius at xs4all.nl



More information about the Bird-users mailing list