Date: Wed, 30 Jan 2002 12:24:23 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: C J Michaels <cjm2@earthling.net> Cc: Michael@meiszl.de, freebsd-questions@FreeBSD.ORG Subject: Re: Annoying message Message-ID: <20020130182423.GR92289@dan.emsphone.com> In-Reply-To: <2337.216.153.201.212.1012413879.squirrel@www1.27in.tv> References: <20020130163539.GL92289@dan.emsphone.com> <2337.216.153.201.212.1012413879.squirrel@www1.27in.tv>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
In the last episode (Jan 30), C J Michaels said:
> Dan Nelson said:
> > In the last episode (Jan 30), Michael A. Meiszl said:
> >> How can I turn off this one:
> >>
> >> Jan 30 07:34:32 Proxy /kernel: arp: 194.39.213.1 moved from 00:04:75:7d:2c:f3 to 00:04:75:7d:2c:f4 on xl0 Jan 30 08:10:44 Proxy
> >>
> >> (that host uses a trunked bunch of ethernet cards, so it is very
> >> common that it might "move" back and forth) I cannot find any
> >> appropriate sysctl option to disable this message.
> >
> > Try net.link.ether.inet.log_arp_movements.
>
> I'm rather tired of the error flooding my logs also. So I tried
> Dan's suggestion:
>
> # sysctl -w net.link.ether.inet.log_arp_movements=0
> sysctl: unknown oid 'net.link.ether.inet.log_arp_movements'
>
> # uname -a
> FreeBSD cartman.lan.27in.tv 4.5-STABLE FreeBSD 4.5-STABLE #6: Tue Jan 29 22:51:31 EST 2002 root@cartman.lan.27in.tv:/usr/local/obj/usr/local/src/sys/CARTMAN i386
>
> Is there a kernel option that adds that sysctl? or are you just running a
> different release?
Please don't top post.
I'm running current, and log_arp_movements apparently hasn't been
merged into -stable yet. Try applying the following patch and rebuild
your kernel.
--
Dan Nelson
dnelson@allantgroup.com
[-- Attachment #2 --]
Index: if_ether.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/if_ether.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -p -r1.80 -r1.81
--- if_ether.c 15 Jun 2001 21:00:32 -0000 1.80
+++ if_ether.c 3 Sep 2001 21:53:15 -0000 1.81
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
- * $FreeBSD: src/sys/netinet/if_ether.c,v 1.80 2001/06/15 21:00:32 jlemon Exp $
+ * $FreeBSD: src/sys/netinet/if_ether.c,v 1.81 2001/09/03 21:53:15 alfred Exp $
*/
/*
@@ -506,10 +506,15 @@ arpintr()
* but formerly didn't normally send requests.
*/
static int log_arp_wrong_iface = 1;
+static int log_arp_movements = 1;
SYSCTL_INT(_net_link_ether_inet, OID_AUTO, log_arp_wrong_iface, CTLFLAG_RW,
&log_arp_wrong_iface, 0,
"log arp packets arriving on the wrong interface");
+SYSCTL_INT(_net_link_ether_inet, OID_AUTO, log_arp_movements, CTLFLAG_RW,
+ &log_arp_movements, 0,
+ "log arp replies from MACs different the the one in the cache");
+
static void
in_arpinput(m)
@@ -595,12 +600,13 @@ in_arpinput(m)
}
if (sdl->sdl_alen &&
bcmp((caddr_t)ea->arp_sha, LLADDR(sdl), sdl->sdl_alen)) {
- if (rt->rt_expire)
- log(LOG_INFO, "arp: %s moved from %6D to %6D on %s%d\n",
- inet_ntoa(isaddr), (u_char *)LLADDR(sdl), ":",
- ea->arp_sha, ":",
- ac->ac_if.if_name, ac->ac_if.if_unit);
- else {
+ if (rt->rt_expire) {
+ if (log_arp_movements)
+ log(LOG_INFO, "arp: %s moved from %6D to %6D on %s%d\n",
+ inet_ntoa(isaddr), (u_char *)LLADDR(sdl), ":",
+ ea->arp_sha, ":",
+ ac->ac_if.if_name, ac->ac_if.if_unit);
+ } else {
log(LOG_ERR,
"arp: %6D attempts to modify permanent entry for %s on %s%d\n",
ea->arp_sha, ":", inet_ntoa(isaddr),
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020130182423.GR92289>
