aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2026-03-04 14:18:58 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2026-03-04 14:18:58 +0000
commit3d69387ece535fc33821d089aab241bfb9551d69 (patch)
tree911cfc1e85a9e7baa059b17315e2a28eedd7cb21
parent546d925cb44f1da7efee76bfebb42df8fdbc83a8 (diff)
tcp: improve NOINET builds
Reported by: bz MFC after: 1 week Sponsored by: Netflix, Inc.
-rw-r--r--sys/netinet/tcp_subr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index c759e9a1cd6b..8aa8a7b7fefc 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -341,8 +341,11 @@ static struct inpcb *tcp_drop_syn_sent(struct inpcb *, int);
static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
const void *ip4hdr, const void *ip6hdr);
static void tcp_default_switch_failed(struct tcpcb *tp);
+
+#ifdef INET
static ipproto_ctlinput_t tcp_ctlinput;
static udp_tun_icmp_t tcp_ctlinput_viaudp;
+#endif
static struct tcp_function_block tcp_def_funcblk = {
.tfb_tcp_block_name = "freebsd",