[quagga-dev 1424] Re: ripd tests for multicast flag -- is that correct?chorr at ti58: mutt -f =quagga

Greg Troxel gdt at ir.bbn.com
Thu Aug 19 19:31:39 BST 2004

  -  if (setsockopt_multicast_ipv4 (sock, IP_MULTICAST_IF, addr, 0, 0) < 0) 
  +  if (setsockopt_multicast_ipv4 (sock, IP_MULTICAST_IF, addr, 0,
  +  				 (connected ? connected->ifp->ifindex : 0)) < 0)
that seems sensible regardless of os behavior, since the function is
defined to take ifindex.  Currently ifindex is only used for linux,
and ifaddr for bsd ('default os' per the comments :-).  We could
enhance the function implementation to use ifindex instead for BSD;
for linux it passes both now.

More information about the Quagga-dev mailing list