Hi there, sorry for another annoying question,

It seems ripd will explicitly add a route to rip's multicast address.

Isn't IP_ADD_MEMBERSHIP to join the group and IP_MULTICAST_IF to
specify which interface enough ?. Please correct me.

This seems to be the code:

kr_all_rip_routers.prefix.s_addr = inet_addr(ALL_RIP_ROUTERS);
kr_all_rip_routers.netmask.s_addr = htonl(INADDR_BROADCAST);
kr_all_rip_routers.nexthop.s_addr = htonl(INADDR_LOOPBACK);

kr_state.fib_sync = 1; /* force addition of multicast route */
if (send_rtmsg(kr_state.fd, RTM_ADD, &kr_all_rip_routers) != -1)
        flag_all_rip_routers = 1;
        
Thanks        
-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.

Reply via email to