Add again the checking for log_arp_permanent_modify that was by accident

removed in the r186119.

PR:		kern/154831
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2011-07-07 11:59:51 +00:00
parent 1c6e7fa7f1
commit 4659e09dcb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223840

View File

@ -694,11 +694,13 @@ in_arpinput(struct mbuf *m)
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) {