From owner-freebsd-net@FreeBSD.ORG Sun Aug 30 06:05:23 2009 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B01441065673; Sun, 30 Aug 2009 06:05:23 +0000 (UTC) (envelope-from Michael.Tuexen@lurchi.franken.de) Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by mx1.freebsd.org (Postfix) with ESMTP id DDEB08FC21; Sun, 30 Aug 2009 06:05:22 +0000 (UTC) Received: from [192.168.1.100] (p508FC6A0.dip.t-dialin.net [80.143.198.160]) by mail-n.franken.de (Postfix) with ESMTP id 91D7B1C0C0BEA; Sun, 30 Aug 2009 08:05:20 +0200 (CEST) Message-Id: From: =?ISO-8859-1?Q?Michael_T=FCxen?= To: "Li, Qing" In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 30 Aug 2009 08:05:19 +0200 References: <38B715CC-9C82-4D8D-97CC-134A9CB01A0C@lurchi.franken.de> X-Mailer: Apple Mail (2.936) Cc: qingli@freebsd.org, "Bjoern A. Zeeb" , Randall Stewart , net@freebsd.org Subject: Re: routing message problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2009 06:05:23 -0000 On Aug 30, 2009, at 4:08 AM, Li, Qing wrote: > Hi Michael, >> >> your patch fixes the issue. >> Will it find its way into 8.0? >> Will it find its way into 7.3? >> > > Yes, the patch will make its way into 8.0 Release and 7.3, too. Great! Thanks a lot. Best regards Michael > > Thanks, > > -- Qing > > >> >> On Aug 28, 2009, at 7:24 PM, Li, Qing wrote: >> >>>> >>>> Dear all, >>>> >>>> via a bug report from Preethi I figured out that there are no >>>> RTM_NEWADDR >>>> routing messages generated when an IP address is added to an >>>> interface >>>> and there is already an address in the same network configured. >>>> This is a problem for the SCTP stack. >>>> >>>> To reproduce the problem you can >>>> sudo ifconfig em0 192.168.1.1 >>>> sudo ifconfig em0 192.168.1.2 alias >>>> >>>> and use the attached problem. It will only show the first address >>>> being added. This problem applies to FreeBSD 9.0 CURRENT and 7.2 >>>> RELEASE. >>>> >>>> Any idea how to fix the problem? >>>> >>> >>> >>> Please try my patch (not the final version) at >>> >>> http://people.freebsd.org/~qingli/patch-8-28-rtmsg.diff >>> >>> >>> I have tested it and seems to work as expected. You should >>> get the notifications for both address insertion ("alias") >>> and deletion ("-alias"). >>> >>> Let me know if it's to your satisfaction. >>> >>> I found a couple of other issues while looking over the code. >>> >>> 1. in_scrubprefix() is called unnecessarily in 2 locations >>> 2. the loopback host route is not removed for an alias >>> >>> On a related note, in.c can use some code cleanup. I think >>> I will do that post 8.0 release. >>> >>> Thanks, >>> >>> -- Qing >>> >>> > >