git: 85f3c0a1c376 - stable/13 - Fix kernel build without INET6

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 30 Mar 2022 17:51:10 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=85f3c0a1c3762f32dd133deea5951de205e2450b

commit 85f3c0a1c3762f32dd133deea5951de205e2450b
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-12-30 21:49:35 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-03-30 17:50:42 +0000

    Fix kernel build without INET6
    
    Reported by:    Gary Jennejohn
    Fixes:          ff3a85d32411 ("[lltable] Add per-family lltable ...")
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 818952c638a72bd677345fd8ddd05c31b34a2aee)
---
 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 73e20eecf378..b82bc9fc104c 100644
--- a/sys/net/if_llatbl.c
+++ b/sys/net/if_llatbl.c
@@ -783,10 +783,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);