kern/129730: respond with wrong ARP.

KOIE Hidetaka koie at
Thu Dec 18 01:50:01 PST 2008

>Number:         129730
>Category:       kern
>Synopsis:       respond with wrong ARP.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 18 09:50:01 UTC 2008
>Originator:     KOIE Hidetaka
>Release:        current
FreeBSD guriandgura 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Thu Dec 18 17:53:41 JST 2008     koie at guriandgura:/usr/obj/usr/src/sys/GURIANDGURA  amd64
I built FreeBSD-current at 2008-12-18, and boot it.

Some machine in my network cannot connect a DNS server...
The finding is my FreeBSD machine responds to ARP request for a 3rd machine with a wrong ARP response like this:

6:50:26.320648 00:1b:78:9a:47:db > Broadcast, ethertype ARP (0x0806), length 42: arp who-has tell
16:50:26.320784 00:e0:81:74:ef:e4 > 00:1b:78:9a:47:db, ethertype ARP (0x0806), length 60: arp reply is-at 00:1b:78:9a:47:db
16:50:26.320851 00:30:48:99:64:8c > 00:1b:78:9a:47:db, ethertype ARP (0x0806), length 60: arp reply is-at 00:30:48:99:64:8c
# 00:1b:78:9a:47:db is a requester (
# 00:e0:81:74:ef:e4 is my machine (
# 00:30:48:99:64:8c is a real responder (

line 1 is ARP request.
line 2 is ARP response by my machine with wrong.
line 3 is ARP correct response.

note: bridging and proxyall are not specified on my machine.


I don't know. (but, a bug may be in r186119).

Now, to suppress the wrong behavior, 
Index: if_ether.c
RCS file: /.../.../src/sys/netinet/if_ether.c,v
retrieving revision 1.187
diff -u -p -r1.187 if_ether.c
--- if_ether.c  17 Dec 2008 00:14:28 -0000      1.187
+++ if_ether.c  18 Dec 2008 08:52:44 -0000
@@ -660,6 +660,7 @@ reply:
                (void)memcpy(ar_tha(ah), ar_sha(ah), ah->ar_hln);
                (void)memcpy(ar_sha(ah), enaddr, ah->ar_hln);
        } else {
+goto drop; /*KOIE*/
                if (la == NULL) {
                        if (!V_arp_proxyall)
                                goto drop;


More information about the freebsd-bugs mailing list