aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_vxlan.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-06-06 14:03:06 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-06-06 14:03:06 +0000
commita3c2c06bc938dbb9ad2ec4a352194159e29b9146 (patch)
tree24a78f8a48a26077acb9cd440dd8157610cde0ee /sys/net/if_vxlan.c
parent82e38486548c70b9e7fc4323376aab85f5cc026c (diff)
downloadsrc-a3c2c06bc938dbb9ad2ec4a352194159e29b9146.tar.gz
src-a3c2c06bc938dbb9ad2ec4a352194159e29b9146.zip
Make LINT NOINET and NOIP kernel builds warning free.
Apply #ifdef INET or #if defined(INET6) || defined(INET) to make universe NOINET and NOIP LINT kernels warning free as well again.
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r--sys/net/if_vxlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index f56ec23540a7..b03357c30c08 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -2429,6 +2429,7 @@ vxlan_encap_header(struct vxlan_softc *sc, struct mbuf *m, int ipoff,
}
#endif
+#if defined(INET6) || defined(INET)
/*
* Return the CSUM_INNER_* equivalent of CSUM_* caps.
*/
@@ -2470,6 +2471,7 @@ csum_flags_to_inner_flags(uint32_t csum_flags_in, const uint32_t encap)
return (csum_flags);
}
+#endif
static int
vxlan_encap4(struct vxlan_softc *sc, const union vxlan_sockaddr *fvxlsa,