Simply use ifa_ifwithaddr() to check if the binding address is on the
authormpi <mpi@openbsd.org>
Mon, 2 Jun 2014 10:41:40 +0000 (10:41 +0000)
committermpi <mpi@openbsd.org>
Mon, 2 Jun 2014 10:41:40 +0000 (10:41 +0000)
commit6606678dc858ea2a548ed38d47ac2d6aedcbf53b
tree9e541e8e61b460d176dd765afb6b4ec0f7fff1bf
parent772d1f21d98346e0aa59e906a41016d18b5f07d4
Simply use ifa_ifwithaddr() to check if the binding address is on the
system.  This function checks for unicast and broadcast addresses, so
there is no need to do two lookups instead of one.

Inputs & ok jca@, ok mikeb@
sys/netinet/raw_ip.c