git: 818952c638a7 - main - Fix kernel build without INET6

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 30 Dec 2021 23:41:58 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=818952c638a72bd677345fd8ddd05c31b34a2aee

commit 818952c638a72bd677345fd8ddd05c31b34a2aee
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-12-30 21:49:35 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-12-30 23:40:46 +0000

    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);