Fix kernel build without INET6
Reported by: Gary Jennejohn
Fixes: ff3a85d324
("[lltable] Add per-family lltable ...")
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5974cfe1ba
commit
818952c638
@ -781,10 +781,14 @@ struct lltable *
|
|||||||
lltable_get(struct ifnet *ifp, int family)
|
lltable_get(struct ifnet *ifp, int family)
|
||||||
{
|
{
|
||||||
switch (family) {
|
switch (family) {
|
||||||
|
#ifdef INET
|
||||||
case AF_INET:
|
case AF_INET:
|
||||||
return (in_lltable_get(ifp));
|
return (in_lltable_get(ifp));
|
||||||
|
#endif
|
||||||
|
#ifdef INET6
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
return (in6_lltable_get(ifp));
|
return (in6_lltable_get(ifp));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user