From 1fcb05015ba5a97d2a5e152612af4484101fe850 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 30 Mar 2006 14:20:00 +0000 Subject: [ospfd] ignore loopbacks for received interface validation 2006-03-25 Paul Jakma * ospf_interface.c: (ospf_if_lookup_recv_if) Ignore loopbacks, we can never ever receive packets on those. Should fix case where CARP is run with address in same subnet as real interface. Problem report and diagnosis thanks to: Landon Fuller . However, ospf_read() still can't deal deterministically with multiple interfaces in same subnet. --- ospfd/ospf_interface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ospfd/ospf_interface.c') diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index 82c4baee..8df0280a 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -474,6 +474,9 @@ ospf_if_lookup_recv_if (struct ospf *ospf, struct in_addr src) if (oi->type == OSPF_IFTYPE_VIRTUALLINK) continue; + if (if_is_loopback (oi->ifp)) + continue; + if ((oi->type == OSPF_IFTYPE_POINTOPOINT) && CONNECTED_DEST_HOST(oi->connected)) { -- cgit v1.2.3