From owner-freebsd-net@FreeBSD.ORG Fri Aug 28 17:25:17 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 5CE4C106564A; Fri, 28 Aug 2009 17:25:17 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id 427288FC08; Fri, 28 Aug 2009 17:25:17 +0000 (UTC) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id n7SHPE13023061; Fri, 28 Aug 2009 10:25:16 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Aug 2009 10:24:44 -0700 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: routing message problem Thread-Index: AconvhKCrjoYLr7zSTm7hQXd5/c61gACkWKw References: From: "Li, Qing" To: =?iso-8859-1?Q?Michael_T=FCxen?= 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: Fri, 28 Aug 2009 17:25:17 -0000 >=20 > Dear all, >=20 > 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. >=20 > To reproduce the problem you can > sudo ifconfig em0 192.168.1.1 > sudo ifconfig em0 192.168.1.2 alias >=20 > 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. >=20 > Any idea how to fix the problem? >=20 Please try my patch (not the final version) at=20 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