From amdmi3@amdmi3.ru  Tue Mar 16 02:35:50 2010
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2F625106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2010 02:35:50 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15])
	by mx1.freebsd.org (Postfix) with ESMTP id DF5628FC08
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2010 02:35:49 +0000 (UTC)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.71)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1NrMdI-00037Z-7Z
	for FreeBSD-gnats-submit@freebsd.org; Tue, 16 Mar 2010 05:35:48 +0300
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id A79F7B860
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Mar 2010 05:35:47 +0300 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 88A15B829; Tue, 16 Mar 2010 05:35:47 +0300 (MSK)
Message-Id: <20100316023547.88A15B829@hades.panopticon>
Date: Tue, 16 Mar 2010 05:35:47 +0300 (MSK)
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Reply-To: Dmitry Marakasov <amdmi3@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [arp] proxyarp broken in 8.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         144777
>Category:       kern
>Synopsis:       [arp] proxyarp broken in 8.0 [regression]
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    qingli
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 16 02:40:06 UTC 2010
>Closed-Date:    Tue Jan 29 15:06:48 UTC 2013
>Last-Modified:  Tue Jan 29 15:06:48 UTC 2013
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386


>Description:
* Note that I'm just relaying this bugreport, I don't have access to original environement it was encountered on. However, can setup it if needed and can ping original reporter.

The problem: proxyarp (as done by mpd - that is, via /usr/sbin/arp utility, which is likely the cause) doesn't seem to work correctly in 8.0.

original log excerpt:

[t_pptp-2] IFACE: Connecting tcpmssfix
[t_pptp-2] IFACE: Add address 10.0.10.1/32->10.0.17.204 to ng0
[t_pptp-2] exec: /usr/sbin/arp -S 10.0.17.204 0:15:17:bb:fd:2e pub
[t_pptp-2] system: command "/usr/sbin/arp" returned 256

original ifconfig:

vlan13: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=3<RXCSUM,TXCSUM>
        ether 00:15:17:bb:fd:2e
        inet 82.148.15.26 netmask 0xffffffc0 broadcast 82.148.15.63
        inet 10.0.0.4 netmask 0xffffe000 broadcast 10.0.31.255
        inet 213.148.20.251 netmask 0xffffff00 broadcast 213.148.20.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        vlan: 13 parent interface: em1

As I understand, this case can be roughly reproduced as follows (that's another setup, 7.2-R and 8.0-R in virtualbox):

# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
	ether 08:00:27:36:d4:ce
	inet 10.0.2.15 netmask 0xffffff00 broadcast 10.0.2.255
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
# ifconfig tun0 create 10.0.2.100/32 10.0.2.101
# arp -S 10.0.2.101 08:00:27:36:d4:ce pub

Output on 7.2-RELEASE:

# arp -S 10.0.2.101 08:00:27:36:d4:ce pub
delete: cannot locate 10.0.2.101
# arp -a
? (10.0.2.101) at 08:00:27:36:d4:ce on em0 permanent published (proxy only) [ethernet]

Output on 8.0-RELEASE:

# arp -S 10.0.2.101 08:00:27:36:d4:ce pub
arp: writing to routing socket: Invalid argument
arp: writing to routing socket: Invalid argument
# arp -a
? (10.0.2.15) at 08:00:27:36:d4:ce on em0 permanent [ethernet]

>How-To-Repeat:
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Mar 16 04:10:40 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144777 
Responsible-Changed-From-To: freebsd-net->qingli 
Responsible-Changed-By: andre 
Responsible-Changed-When: Tue Aug 24 07:54:38 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144777 
State-Changed-From-To: open->closed 
State-Changed-By: glebius 
State-Changed-When: Tue Jan 29 15:06:24 UTC 2013 
State-Changed-Why:  
Not sure about stable/8, but definitely fixed in stable/9. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144777 
>Unformatted:
