diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-23 13:20:18 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-06-23 13:20:18 +0000 |
commit | bb6bf0fd418598f3f4dd9d3fdc4952bc18afcd6d (patch) | |
tree | b05dedd451838bdfa8e65fe40f87a7c5001dcfe6 /sys/netinet/if_ether.h | |
parent | cf24335bad354b44b8bce17796f651c1ede29400 (diff) |
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".
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r-- | sys/netinet/if_ether.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index aa7394da822..5c544f93b75 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.56 2015/04/10 13:58:20 dlg Exp $ */ +/* $OpenBSD: if_ether.h,v 1.57 2015/06/23 13:20:17 mpi Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -192,7 +192,7 @@ extern struct niqueue arpintrq; void arpwhohas(struct arpcom *, struct in_addr *); void arpintr(void); -int arpresolve(struct arpcom *, +int arpresolve(struct ifnet *, struct rtentry *, struct mbuf *, struct sockaddr *, u_char *); void arp_ifinit(struct arpcom *, struct ifaddr *); void arp_rtrequest(int, struct rtentry *); |