From owner-freebsd-current@FreeBSD.ORG Thu Sep 24 21:34:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09195106568D; Thu, 24 Sep 2009 21:34:04 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by mx1.freebsd.org (Postfix) with ESMTP id 567508FC13; Thu, 24 Sep 2009 21:34:03 +0000 (UTC) Received: by bwz27 with SMTP id 27so1578546bwz.43 for ; Thu, 24 Sep 2009 14:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=J6uVfSHyOlZdEmF3rfhvzZMBbdlAIdJ5Qi84AO871h0=; b=MrHCnwbfqHsaJsC7P7StHANW6H5IdXVQ2516ehL1VanK4WIkjRl7EPUSHASMcdjLrj PzpgiWPrlMtVnEqg/P12NRjqPOcqhhr45OcqBvMADJI9XktKmntV8VI4xBmnEWiWic59 OdCxPdhTHjXvXnyUmRu5BtvexLgn3fMF6Q3GM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=h7Qo4jzAoCXRIpJpbBsgI4c4tKwc6NrJKiZAcwTwA9Tf3e0WEAKOrblVp0huTxZGUj BhXQtX5+I7a7AcGJmiKnJNv1AVF1vPxFXcTOGYwUvTKr42TKPWl+7jMr+PTfttVcb0Xu yjHPpZ8Jy/J5p39YRYWTU5x/7Weci/T0SgZYo= Received: by 10.204.141.21 with SMTP id k21mr3508085bku.124.1253828042224; Thu, 24 Sep 2009 14:34:02 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id g28sm163676fkg.15.2009.09.24.14.34.01 (version=SSLv3 cipher=RC4-MD5); Thu, 24 Sep 2009 14:34:01 -0700 (PDT) Sender: Alexander Motin Message-ID: <4ABBE5C6.6070707@FreeBSD.org> Date: Fri, 25 Sep 2009 00:33:58 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: "Li, Qing" References: <4ABBAC87.4040306@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net , freebsd-current@freebsd.org Subject: Re: Point-to-Point interfaces regressions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2009 21:34:04 -0000 Li, Qing wrote: >> 1) I am going to reuse Ethernet address as local for PtP link: >> %ifconfig ng0 10.0.0.1 10.0.0.2 >> ifconfig: ioctl (SIOCAIFADDR): File exists >> %ifconfig ng0 >> ng0: flags=88d1 metric >> 0 >> mtu 1500 >> inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 >> So as you can see, address was assigned, but request returned error >> status. Probably it is related to the recent local address route >> changes. > > I have written several times about this particular topic here. > > Yes, the behavior changed. Previously if you try to ping 10.0.0.1 the > packets leak onto the wire even though that's a local address. And you > cannot connect to the local end, again, packets go on the wire towards > possibly the default gateway. Me and many other people running net/mpd handling thousands of PtP interfaces sharing local addresses with each other and with some Ethernet interface. This change makes such setup inoperable, as mpd will constantly receive errors while trying to set addresses and drop connections. There was legacy hack in mpd, doing the same, but in user level. I have removed it few years ago, because it never worked as expected with more then one interface. I would like kernel implementation to be more correct. >> 2) I am going to configure arp-proxy: >> %arp -s 10.0.0.2 00:1b:24:c5:5b:09 pub >> arp: writing to routing socket: Invalid argument >> And again it doesn't work, writing to syslog: >> kernel: lla_rt_output: RTM_ADD publish (proxy only) is invalid >> > > I will take a look and let you know what the issue might be. Thank you. -- Alexander Motin