From efcb5e88f9b4118a900244db456e37f91f4cdbe0 Mon Sep 17 00:00:00 2001 From: qingli Date: Fri, 7 Oct 2011 22:22:19 +0000 Subject: Do not try removing an ARP entry associated with a given interface address if that interface does not support ARP. Otherwise the system will generate error messages unnecessarily due to the missing entry. PR: kern/159602 Submitted by: pluknet MFC after: 3 days --- sys/netinet/in.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 3201fa6..a0f1cb7 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -1138,7 +1138,8 @@ in_scrubprefix(struct in_ifaddr *target, u_int flags) if (error == 0) target->ia_flags &= ~IFA_RTSELF; } - if (flags & LLE_STATIC) + if ((flags & LLE_STATIC) && + !(target->ia_ifp->if_flags & IFF_NOARP)) /* remove arp cache */ arp_ifscrub(target->ia_ifp, IA_SIN(target)->sin_addr.s_addr); } -- cgit v1.1