ether_resolve_addr: eh is only used for INET or INET6.

This commit is contained in:
John Baldwin 2022-04-13 16:08:21 -07:00
parent 127b40e7dc
commit d98981585c

View File

@ -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