From abec47242a7aa096d35333a29a41c1bffe4e67be Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Mon, 6 Nov 2017 19:54:25 +0000 Subject: [PATCH] Fix NOINET/NOINET6 build during compilation of iflib. Reported by: kib --- sys/net/iflib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 8cb6bb46e3bc..14d267812388 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -2481,6 +2481,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m) eh = mtod(m, struct ether_header *); eh_type = ntohs(eh->ether_type); switch (eh_type) { +#if defined(INET6) case ETHERTYPE_IPV6: { CURVNET_SET(lc->ifp->if_vnet); @@ -2491,6 +2492,8 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m) CURVNET_RESTORE(); break; } +#endif +#if defined (INET) case ETHERTYPE_IP: { CURVNET_SET(lc->ifp->if_vnet); @@ -2501,6 +2504,7 @@ iflib_check_lro_possible(struct lro_ctrl *lc, struct mbuf *m) CURVNET_RESTORE(); break; } +#endif } return false;