Fix kernel build without INET6

Reported by:	Gary Jennejohn
Fixes:		ff3a85d324 ("[lltable] Add per-family lltable ...")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2021-12-30 16:49:35 -05:00
parent 5974cfe1ba
commit 818952c638

View File

@ -781,10 +781,14 @@ struct lltable *
lltable_get(struct ifnet *ifp, int family)
{
switch (family) {
#ifdef INET
case AF_INET:
return (in_lltable_get(ifp));
#endif
#ifdef INET6
case AF_INET6:
return (in6_lltable_get(ifp));
#endif
}
return (NULL);