Comment update.
This commit is contained in:
parent
974363c172
commit
a306208582
1 changed files with 8 additions and 5 deletions
|
@ -69,11 +69,14 @@ ospf_open_socket(struct ospf_iface *ifa, int mc)
|
||||||
ipsk->dport = OSPF_PROTO;
|
ipsk->dport = OSPF_PROTO;
|
||||||
|
|
||||||
#ifdef OSPFv2
|
#ifdef OSPFv2
|
||||||
/* FIXME - why there is IPA_NONE on multicast sockets ? */
|
/*
|
||||||
if (mc)
|
* In Linux IPv4, binding a raw socket to an IP address of an iface causes
|
||||||
ipsk->saddr = IPA_NONE;
|
* that the socket does not receive multicast packets, as they have
|
||||||
else
|
* different (multicast) destination IP address.
|
||||||
ipsk->saddr = ifa->iface->addr->ip;
|
*
|
||||||
|
* We want such filter in the vlink (non-mc) socket.
|
||||||
|
*/
|
||||||
|
ipsk->saddr = mc ? IPA_NONE : ifa->iface->addr->ip;
|
||||||
#else /* OSPFv3 */
|
#else /* OSPFv3 */
|
||||||
ipsk->saddr = ifa->lladdr;
|
ipsk->saddr = ifa->lladdr;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue