summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.h
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-12-31 23:48:06 +0000
committerjulian <julian@FreeBSD.org>2007-12-31 23:48:06 +0000
commit3032c5c97143e8c0b92bae65601cbb7f7c746699 (patch)
treecafc9402b17d1ecb4bfcf6e0b22f4480ebac9217 /sys/netinet/if_ether.h
parent9cea85864d49868ad2155b6f59d9ebd33a998a3f (diff)
downloadFreeBSD-src-3032c5c97143e8c0b92bae65601cbb7f7c746699.zip
FreeBSD-src-3032c5c97143e8c0b92bae65601cbb7f7c746699.tar.gz
Don't duplicate the whole of arpresolve to arpresolve 2 for the sake
of two compares against 0. The negative effect of cache flushing is probably more than the gain by not doing the two compares (the value is almost certainly in register or at worst, cache). Note that the uses of m_freem() are in error cases and m_freem() handles NULL anyhow. So fast-path really isn't changed much at all.
Diffstat (limited to 'sys/netinet/if_ether.h')
-rw-r--r--sys/netinet/if_ether.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h
index ae2b0d0..14df15f 100644
--- a/sys/netinet/if_ether.h
+++ b/sys/netinet/if_ether.h
@@ -111,8 +111,6 @@ extern u_char ether_ipmulticast_max[ETHER_ADDR_LEN];
int arpresolve(struct ifnet *ifp, struct rtentry *rt,
struct mbuf *m, struct sockaddr *dst, u_char *desten);
-int arpresolve2(struct ifnet *ifp, struct rtentry *rt,
- struct sockaddr *dst, u_char *desten);
void arp_ifinit(struct ifnet *, struct ifaddr *);
void arp_ifinit2(struct ifnet *, struct ifaddr *, u_char *);
#endif
OpenPOWER on IntegriCloud