input filter function <NULL>
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@xs4all.nl
On Thu, May 27, 2010 at 09:45:28AM +0200, Arjan Filius wrote:
I wasn't expecting a <NULL> here. Is that usual for a function in import, or is it because i do something wrong?
That is OK, <NULL> means it is unnamed filter, like the one implicitly created by 'where' statement. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@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."
participants (2)
-
Arjan Filius -
Ondrej Zajicek