diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-12-30 21:49:35 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2021-12-30 23:40:46 +0000 |
commit | 818952c638a72bd677345fd8ddd05c31b34a2aee (patch) | |
tree | 49bfa67557d87d4896297922e2842362a47fb3e8 | |
parent | 5974cfe1ba47ac756fc0d5e48306730e1115b36c (diff) | |
download | src-818952c638a72bd677345fd8ddd05c31b34a2aee.tar.gz src-818952c638a72bd677345fd8ddd05c31b34a2aee.zip |
Fix kernel build without INET6
Reported by: Gary Jennejohn
Fixes: ff3a85d32411 ("[lltable] Add per-family lltable ...")
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/net/if_llatbl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |