The branch main has been updated by emaste:

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

commit 818952c638a72bd677345fd8ddd05c31b34a2aee
Author:     Ed Maste <[email protected]>
AuthorDate: 2021-12-30 21:49:35 +0000
Commit:     Ed Maste <[email protected]>
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);

Reply via email to