[quagga-dev 16738] rip_output_process incorrectly suppressed a route

Woody Wu narkewoody at icloud.com
Wed Aug 22 09:00:22 BST 2018

Hi List,

I am afraid in the rip_output_process(), the arguments order when invoking prefix_match() is just reversed, so it looks like a bug to my understanding.

I like to explain with an example.  Say, r1 as a router connects to another router r2 via it's interface nic1.  r1 also has another interface nic2 which are configured with expectation to be advertised to r2.  nic1 = and nic2 =  I think it's reasonable to have r2 to understand network of since its a kind of information that cannot be inferred from the r1-r2 interconnected network In the other words, contains more hosts that can only be reached if r2 know the route. Hence the wise of advertising from r1 is health and will not cause routing problem such as infinite looping.

But, the code in ripd.c, in the function body of rip_output_process(), the router entry was intended suppressed because the checking of prefix_match((struct prefix *)p, ifc->address) returned true. In the function call, the p is and ifc is It returned true because p's network prefix is contained in ifc-address's prefix, in this case, 24 bits of is contained in  I think this is not reasonable and has nothing to do with the split-horizon algorithm used in RIPv2.  If it's just a bug, and we should have been invoked the checking function as rather prefix_match(ifc, p), then everything will appear understandable and clear to me.

I want to confirm, if this is a bug or not.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20180822/4fda7d88/attachment.html>

More information about the Quagga-dev mailing list