summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-04-02 16:11:46 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-04-02 16:11:46 +0200
commite7b09e4ab99fc850480480bbb577ffa36a6c5cd7 (patch)
tree878afa02cdb11fc78664ea8ce5ac542e897d91d2 /proto/ospf/iface.c
parent97ab4c34986139b2419c563a3de7ddfe41727d07 (diff)
downloadbird-e7b09e4ab99fc850480480bbb577ffa36a6c5cd7.tar
bird-e7b09e4ab99fc850480480bbb577ffa36a6c5cd7.zip
Use SO_BINDTODEVICE also in Linux/IPv6.
Diffstat (limited to 'proto/ospf/iface.c')
-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 0416355..6931619 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;