From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 16 02:40:07 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A73B21065672 for ; Tue, 16 Mar 2010 02:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 661DC8FC16 for ; Tue, 16 Mar 2010 02:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2G2e6Uu026955 for ; Tue, 16 Mar 2010 02:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2G2e6RM026954; Tue, 16 Mar 2010 02:40:06 GMT (envelope-from gnats) Resent-Date: Tue, 16 Mar 2010 02:40:06 GMT Resent-Message-Id: <201003160240.o2G2e6RM026954@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F625106566C for ; 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 ; 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 ) 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/144777: [arp] proxyarp broken in 8.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dmitry Marakasov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 02:40:07 -0000 >Number: 144777 >Category: kern >Synopsis: [arp] proxyarp broken in 8.0 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 16 02:40:06 UTC 2010 >Closed-Date: >Last-Modified: >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 metric 0 mtu 1500 options=3 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 ) 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 metric 0 mtu 1500 options=9b ether 08:00:27:36:d4:ce inet 10.0.2.15 netmask 0xffffff00 broadcast 10.0.2.255 media: Ethernet autoselect (1000baseT ) 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: >Unformatted: