Date: Mon, 28 Jun 1999 12:12:10 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Kevin Bracey <kbracey@e-14.com> Cc: freebsd-net@freebsd.org Subject: Old IP addresses hanging around in routes Message-ID: <199906281612.MAA17098@khavrinen.lcs.mit.edu> In-Reply-To: <5210331949%kbracey@kbracey.acorn.co.uk> References: <5210331949%kbracey@kbracey.acorn.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 28 Jun 1999 11:18:15 +0100, Kevin Bracey <kbracey@e-14.com> said: > Our particular problem is that if you change the IP address of an interface, > you end up with severe communication difficulties. The reason for this is > that the routing table is full of references to struct ifaddrs containing > our previous IP address - in particular the cloned link-level routes, our > default route and any protocol-cloned TCP routes. There is supposed to be code in there to delete all of the (non-static) routes which refer to a specific interface when that interface goes down. At least, I feel fairly certain that I wrote code to do that; I can't seem to find it right now. I think in_ifscrub ought to be doing it, but I don't see the code that would, either there or in rtinit. The cloned-route cleanup in rtrequest(RTM_DELETE,...) ought to take care of it too. You are correct that 4.4BSD did not have any such code. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906281612.MAA17098>