Always call rt_ifa_dellocal(9) when removing an IPv6 address.
authormpi <mpi@openbsd.org>
Mon, 20 Apr 2015 08:53:36 +0000 (08:53 +0000)
committermpi <mpi@openbsd.org>
Mon, 20 Apr 2015 08:53:36 +0000 (08:53 +0000)
commit9ea9b1e7b5bc976440c9fdc976fd4ae72d6298c0
treee050e420da00c0e28ab2421ec3ad706069ea3aad
parente466c223747ec6b58d4f5874b1dfbde5c8c47455
Always call rt_ifa_dellocal(9) when removing an IPv6 address.

The routing layer already check for the correct ifa when asked
to delete a local route, so do not try to be clever here.

This change also prevent having a NULL ifp pointer in your routing
table when you delete loopback interfaces having the same address.

ok henning@
sys/netinet6/in6.c