summaryrefslogtreecommitdiffstats
path: root/zebra/connected.c
diff options
context:
space:
mode:
authorajs <ajs>2004-12-22 17:32:16 +0100
committerajs <ajs>2004-12-22 17:32:16 +0100
commit341a8f1ac9d584ca9dd44bd1b5f90588f475e769 (patch)
tree6145d76a12a8232ce349b97447f9676ef8a700bc /zebra/connected.c
parent2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu> (diff)
downloadfrr-341a8f1ac9d584ca9dd44bd1b5f90588f475e769.tar.xz
frr-341a8f1ac9d584ca9dd44bd1b5f90588f475e769.zip
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.
Diffstat (limited to '')
-rw-r--r--zebra/connected.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/connected.c b/zebra/connected.c
index 9a6fd6693..5f581915b 100644
--- a/zebra/connected.c
+++ b/zebra/connected.c
@@ -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)