git: 3b62f3350017 - main - netinet: fix LINT-NOINET build failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Aug 2024 14:46:12 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b62f3350017ab6722ebe8e4fccd9ba76acbb214
commit 3b62f3350017ab6722ebe8e4fccd9ba76acbb214
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2024-08-26 20:02:25 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2024-08-27 14:45:46 +0000
netinet: fix LINT-NOINET build failure
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netinet/in_pcb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 3fc90f1e12c2..70ddd581895f 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -234,11 +234,13 @@ in_pcbhashseed_init(void)
VNET_SYSINIT(in_pcbhashseed_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_FIRST,
in_pcbhashseed_init, 0);
+#ifdef INET
VNET_DEFINE_STATIC(int, connect_inaddr_wild) = 1;
#define V_connect_inaddr_wild VNET(connect_inaddr_wild)
SYSCTL_INT(_net_inet_ip, OID_AUTO, connect_inaddr_wild,
CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(connect_inaddr_wild), 0,
"Allow connecting to INADDR_ANY or INADDR_BROADCAST for connect(2)");
+#endif
static void in_pcbremhash(struct inpcb *);