]> git.puffer.fish Git - mirror/frr.git/commitdiff
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Wed, 22 Dec 2004 16:32:16 +0000 (16:32 +0000)
committerajs <ajs>
Wed, 22 Dec 2004 16:32:16 +0000 (16:32 +0000)
* connected.c: (connected_add_ipv4) Limit warning about /32 addresses
  with no peer specified to PtP interfaces only.

zebra/ChangeLog
zebra/connected.c

index 10db25314f8f9b40193163024d59dcb1bda6f404..3ed8c635c80de209b8f7e01b1d4cb04bedc1d8d2 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * connected.c: (connected_add_ipv4) Limit warning about /32 addresses
+         with no peer specified to PtP interfaces only.
+
 2004-12-18 Hasso Tepper <hasso at quagga.net>
 
        * zebra_vty.c: Fix "show ipv6 route <proto>" command help and make it
index 9a6fd6693e90de7ec7c12a8650df01d27b76525b..5f581915be95b4a52dc1e562da35d28947d252a1 100644 (file)
@@ -156,9 +156,9 @@ connected_add_ipv4 (struct interface *ifp, int flags, struct in_addr *addr,
     }
   else
     /* no broadcast or destination address was supplied */
-    if (prefixlen == IPV4_MAX_PREFIXLEN)
-      zlog_warn("warning: interface %s with addr %s/%d needs a peer address",
-               ifp->name,inet_ntoa(*addr),prefixlen);
+    if ((prefixlen == IPV4_MAX_PREFIXLEN) && if_is_pointopoint(ifp))
+      zlog_warn("warning: PtP interface %s with addr %s/%d needs a "
+               "peer address",ifp->name,inet_ntoa(*addr),prefixlen);
 
   /* Label of this address. */
   if (label)