From bb6bf0fd418598f3f4dd9d3fdc4952bc18afcd6d Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Tue, 23 Jun 2015 13:20:18 +0000 Subject: 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/netinet/if_ether.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet/if_ether.h') 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 *); -- cgit v1.2.3