summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 04163553..6931619b 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -66,17 +66,7 @@ ospf_sk_open(struct ospf_iface *ifa)
sk = sk_new(p->pool);
sk->type = SK_IP;
sk->dport = OSPF_PROTO;
-
-#ifdef OSPFv2
- /*
- * In Linux IPv4, binding a raw socket to an IP address of an iface causes
- * that the socket does not receive multicast packets, as they have
- * different (multicast) destination IP address.
- */
sk->saddr = IPA_NONE;
-#else /* OSPFv3 */
- sk->saddr = ifa->addr->ip; /* link-local addr */
-#endif
sk->tos = IP_PREC_INTERNET_CONTROL;
sk->rx_hook = ospf_rx_hook;