Rewrite in_ouraddr() to not use ``rt_ifa'' since it is not obvious that
authormpi <mpi@openbsd.org>
Tue, 27 Oct 2015 12:06:37 +0000 (12:06 +0000)
committermpi <mpi@openbsd.org>
Tue, 27 Oct 2015 12:06:37 +0000 (12:06 +0000)
commite56102ae2f113813cce76874c1ed234416c01d4f
tree35f0d4fa7c51b4e70826d8f758f687acf3c8b188
parent8533c188d808fa869a41e8d8347ced785d18be3b
Rewrite in_ouraddr() to not use ``rt_ifa'' since it is not obvious that
the lifetime of an ``ifa'' is tied to a route entry, so it might no
longer be valid after calling rtfree(9).

While here put a KERNEL_LOCK() around the per-ifp address list iteration.

ok bluhm@
sys/netinet/ip_input.c