diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-01-06 00:45:08 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-01-06 00:45:08 +0000 |
| commit | 3269187d41ed224e25b2ac61b595d5f84f79720c (patch) | |
| tree | 7a6ff9a9f948394bb0a6042d1ff56302b09c02bc /sys/netinet/if_ether.c | |
| parent | 5192404af2d6a9f73d26ac5c1d9fac5ef83fb357 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/if_ether.c')
| -rw-r--r-- | sys/netinet/if_ether.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 1bbe164a01da..c1237133c207 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -493,6 +493,12 @@ arpintr() * We no longer reply to requests for ETHERTYPE_TRAIL protocol either, * but formerly didn't normally send requests. */ +static int log_arp_wrong_iface = 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"); + static void in_arpinput(m) struct mbuf *m; @@ -558,6 +564,7 @@ in_arpinput(m) if (la && (rt = la->la_rt) && (sdl = SDL(rt->rt_gateway))) { #ifndef BRIDGE /* the following is not an error when doing bridging */ if (rt->rt_ifp != &ac->ac_if) { + if (log_arp_wrong_iface) log(LOG_ERR, "arp: %s is on %s%d but got reply from %6D on %s%d\n", inet_ntoa(isaddr), rt->rt_ifp->if_name, rt->rt_ifp->if_unit, |
