]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospfd] ignore loopbacks for received interface validation
authorPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:20:00 +0000 (14:20 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 30 Mar 2006 14:20:00 +0000 (14:20 +0000)
2006-03-25 Paul Jakma <paul.jakma@sun.com>

* 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 <landonf@opendarwin.org>.
  However, ospf_read() still can't deal deterministically with
  multiple interfaces in same subnet.

ospfd/ChangeLog
ospfd/ospf_interface.c

index 9f17a3a4fc3a3b38febb36338c5dfc0a084f1a6c..e5aa0660d3253b732941c1a9a42f49b0ca12af17 100644 (file)
@@ -1,3 +1,13 @@
+2006-03-25 Paul Jakma <paul.jakma@sun.com>
+
+       * 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 <landonf@opendarwin.org>.
+         However, ospf_read() still can't deal deterministically with
+         multiple interfaces in same subnet.
+
 2006-03-23 Steve Lawson <steve.lawson@aheadcomusa.com>
 
        * ospf_lsa.c: (ospf_lsa_install) Fix incorrect byte-order 
index 82c4baee91db61b941e2bd8b02d268900594a548..8df0280a9a7dd05ab2b59ac1e7b00fb9b5133ea7 100644 (file)
@@ -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))
        {