From e7b09e4ab99fc850480480bbb577ffa36a6c5cd7 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 2 Apr 2010 16:11:46 +0200 Subject: Use SO_BINDTODEVICE also in Linux/IPv6. --- proto/ospf/iface.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'proto') 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; -- cgit v1.2.3