diff options
author | ajs <ajs> | 2004-12-22 16:32:16 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-12-22 16:32:16 +0000 |
commit | 48a8f95271ce24e37dc055a57d12fb766f9dffd7 (patch) | |
tree | bdb5f88b0b848a5ca9e5fd4759461431c556415e /zebra/connected.c | |
parent | b47c27e421d98f3c20430f2b8a394b5deca2f055 (diff) | |
download | quagga-48a8f95271ce24e37dc055a57d12fb766f9dffd7.tar.bz2 quagga-48a8f95271ce24e37dc055a57d12fb766f9dffd7.tar.xz |
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 'zebra/connected.c')
-rw-r--r-- | zebra/connected.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index 9a6fd669..5f581915 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) |