aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:21 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:21 +0000
commitd98981585c9a4de8105979d59d38ab6b4ce294c3 (patch)
tree90a4a28ea61e24415a6ccb133935bdedbc86a122 /sys/net/if_ethersubr.c
parent127b40e7dcdbd5cc1ffc189b59bb8f8531716f76 (diff)
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 0427e1352ab1..d92c49b6f39c 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -202,16 +202,15 @@ ether_resolve_addr(struct ifnet *ifp, struct mbuf *m,
const struct sockaddr *dst, struct route *ro, u_char *phdr,
uint32_t *pflags, struct llentry **plle)
{
- struct ether_header *eh;
uint32_t lleflags = 0;
int error = 0;
#if defined(INET) || defined(INET6)
+ struct ether_header *eh = (struct ether_header *)phdr;
uint16_t etype;
#endif
if (plle)
*plle = NULL;
- eh = (struct ether_header *)phdr;
switch (dst->sa_family) {
#ifdef INET