From 818952c638a72bd677345fd8ddd05c31b34a2aee Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 30 Dec 2021 16:49:35 -0500 Subject: [PATCH] Fix kernel build without INET6 Reported by: Gary Jennejohn Fixes: ff3a85d32411 ("[lltable] Add per-family lltable ...") Sponsored by: The FreeBSD Foundation --- sys/net/if_llatbl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/if_llatbl.c b/sys/net/if_llatbl.c index c61a19f39de2..418f4135185c 100644 --- a/sys/net/if_llatbl.c +++ b/sys/net/if_llatbl.c @@ -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);