diff options
| author | Andrey V. Elsukov <ae@FreeBSD.org> | 2011-07-14 04:21:27 +0000 |
|---|---|---|
| committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2011-07-14 04:21:27 +0000 |
| commit | f873379c49734df2d0da55c8d2c416163048d3d3 (patch) | |
| tree | fd6edbdb4fe0b694b783395fad3c6c8209cc0363 | |
| parent | 72cc4d21f25416bbb1ee04f69db5251d7fa24110 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/if_ether.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 309b673d347c..75cf6bce3921 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -680,11 +680,13 @@ match: bcmp(ar_sha(ah), &la->ll_addr, ifp->if_addrlen)) { if (la->la_flags & LLE_STATIC) { LLE_WUNLOCK(la); - log(LOG_ERR, - "arp: %*D attempts to modify permanent " - "entry for %s on %s\n", - ifp->if_addrlen, (u_char *)ar_sha(ah), ":", - inet_ntoa(isaddr), ifp->if_xname); + if (log_arp_permanent_modify) + log(LOG_ERR, + "arp: %*D attempts to modify " + "permanent entry for %s on %s\n", + ifp->if_addrlen, + (u_char *)ar_sha(ah), ":", + inet_ntoa(isaddr), ifp->if_xname); goto reply; } if (log_arp_movements) { |
