Pass a "struct ifnet *" instead of a "struct arpcom *" to arpresolve().
authormpi <mpi@openbsd.org>
Tue, 23 Jun 2015 13:20:17 +0000 (13:20 +0000)
committermpi <mpi@openbsd.org>
Tue, 23 Jun 2015 13:20:17 +0000 (13:20 +0000)
commitf47663ad1ab2e2faf61e4f34cc48ad4381881c8f
treea6a99f76b45a551fee15b87a3231974ca3fee785
parent08d595dd48d86439ec4d808b92257555da5e4590
Pass a "struct ifnet *" instead of a "struct arpcom *" to arpresolve().

Most of the ARP layer already take an ifp pointer and this makes clear
wich chunks of code are messing with ac_enaddr.

Note that our Ethernet code assume that these pointer are interchangeable
since the first element of the "struct arpcom" is a "struct ifnet".
sys/net/if_ethersubr.c
sys/netinet/if_ether.c
sys/netinet/if_ether.h