Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2009 10:24:44 -0700
From:      "Li, Qing" <qing.li@bluecoat.com>
To:        =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
Cc:        qingli@freebsd.org, "Bjoern A. Zeeb" <bz@freebsd.org>, Randall Stewart <rrs@lakerest.net>, net@freebsd.org
Subject:   RE: routing message problem
Message-ID:  <B583FBF374231F4A89607B4D08578A4305277931@bcs-mail03.internal.cacheflow.com>
In-Reply-To: <BFC746D7-9E88-43AD-8320-96928633C532@lurchi.franken.de>
References:  <BFC746D7-9E88-43AD-8320-96928633C532@lurchi.franken.de>

next in thread | previous in thread | raw e-mail | index | archive | help
>=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B583FBF374231F4A89607B4D08578A4305277931>