From 341a8f1ac9d584ca9dd44bd1b5f90588f475e769 Mon Sep 17 00:00:00 2001 From: ajs Date: Wed, 22 Dec 2004 16:32:16 +0000 Subject: [PATCH] 2004-12-22 Andrew J. Schorr * connected.c: (connected_add_ipv4) Limit warning about /32 addresses with no peer specified to PtP interfaces only. --- zebra/ChangeLog | 5 +++++ zebra/connected.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 10db25314f..3ed8c635c8 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,8 @@ +2004-12-22 Andrew J. Schorr + + * connected.c: (connected_add_ipv4) Limit warning about /32 addresses + with no peer specified to PtP interfaces only. + 2004-12-18 Hasso Tepper * zebra_vty.c: Fix "show ipv6 route " command help and make it diff --git a/zebra/connected.c b/zebra/connected.c index 9a6fd6693e..5f581915be 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) -- 2.39.5