[Xorp-users] Questions on RIP

Ben Greear greearb at candelatech.com
Mon Apr 20 17:23:23 PDT 2009


Ben Greear wrote:
> Ben Greear wrote:
>> Hello!
>>
>> I'm trying to modify RIP so that it works with virtual
>> routers.
>>
>> So far, I've changed the rip code to have one socket per port.
>>
>> I see these opened in the FEA, and I see the multicast packets
>> being transmitted on the network interfaces.
>>
>> However, I do not ever see any packets received.
>>
>> Are the sockets that send the mcast packets also supposed
>> to be reading the packets from the peer?  I assume so,
>> but wanted to check...
>>
>> Thanks,
>> Ben
>>
> 
> Nevermind..I figured it out.  I was binding to a specific local IP
> instead of 0.0.0.0, which does not work for Multicast receive.
> 
> Fixed by setting reuseaddr and binding to ANY instead.
> 
> I'll post a patch when I get things cleaned up and a bit more tested.

Here is the cleaned up patch, against 1.6
We'll do more testing in the coming days and I'll post a new patch
if I find bugs.

Feel free to include this in xorp proper should you wish.

Thanks,
Ben


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xorp_rip.patch
Url: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090420/6d5de8c4/attachment.ksh 


More information about the Xorp-users mailing list