Hi. I think there's a little bug in the documentation of the import_control function. In the nest/proto-hooks.c file, source of the published documentation, the "Result" is: "-1 if the route has to be accepted, 1 if rejected and 0 if it should be passed to the filters." Looking at the code this is not true: 1 means accepted and -1 not accepted. Regards and keep up the good work :-) Roberto PS: I found that investigating some problem related with rip protocol "forced" routes... probably more on this in a little while :-) -- Roberto Moreda Allenta Consulting UNIX, Linux & Security Services
On Jul/08/2005, Roberto Moreda wrote:
[...] PS: I found that investigating some problem related with rip protocol "forced" routes... probably more on this in a little while :-)
Shame on me: PEBKAC :-) Trying to filter the routes that rip announces on each interface, and digging on the code I have now a much better understand of the way on that bird works. Probably the solution must be to define a rip protocol instance for each group/class of network interfaces and apply filters. Greets. Roberto -- Roberto Moreda Allenta Consulting UNIX, Linux & Security Services
Trying to filter the routes that rip announces on each interface, and digging on the code I have now a much better understand of the way on that bird works. Probably the solution must be to define a rip protocol instance for each group/class of network interfaces and apply filters.
Yes, that's the standard solution. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth return(ECRAY); /* Program exited before being run */
Hi!
I think there's a little bug in the documentation of the import_control function. In the nest/proto-hooks.c file, source of the published documentation, the "Result" is:
"-1 if the route has to be accepted, 1 if rejected and 0 if it should be passed to the filters."
Looking at the code this is not true: 1 means accepted and -1 not accepted.
Sure, you are right. Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
participants (2)
-
Martin Mares -
Roberto Moreda