in_ifadown() was only cleaning up the route table on the originating cpu,
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 11 Apr 2006 06:59:36 +0000 (06:59 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 11 Apr 2006 06:59:36 +0000 (06:59 +0000)
commit69cb4182173bc3d2ab60ac827e903f7256ff3adb
tree32bc3268dd33508d6bedece091a5bf32a048aa2f
parentded0173f752c8c4ef7921806ee34ee99e578559b
in_ifadown() was only cleaning up the route table on the originating cpu,
it needs to clean up the route table on ALL cpus.  This routine is
called when an interface is brought down, typically during a reinitialization
of the interface's IP address(es).  An example of this would be if
DHCP were re-run on an interface by killing dhclient and re-running it.

Change in_ifadown() to iterate over all cpu's route tables.

Reported-by: multiple people
sys/net/route.c
sys/net/route.h
sys/netinet/in_rmx.c