inpcb: make ipport_randomized static

This commit is contained in:
Gleb Smirnoff committed 2026-10-19 12:42:15 -07:00
1 parent 1594fbd7f2
commit 4488a4f048
2 files changed
+2 -3

No files matched your search

+2 -1
View File
@@ -128,7 +128,8 @@ VNET_DEFINE(u_int, ipport_reservedhigh) = IPPORT_RESERVED - 1; /* 1023 */
VNET_DEFINE(u_int, ipport_reservedlow);
/* Enable random ephemeral port allocation by default. */
VNET_DEFINE(bool, ipport_randomized) = true;
VNET_DEFINE_STATIC(bool, ipport_randomized) = true;
#define V_ipport_randomized VNET(ipport_randomized)
#ifdef INET
static struct inpcb *in_pcblookup_internal(struct inpcbinfo_ctx *ipictx,
-2
View File
@@ -603,7 +603,6 @@ VNET_DECLARE(u_int, ipport_firstauto);
VNET_DECLARE(u_int, ipport_lastauto);
VNET_DECLARE(u_int, ipport_hifirstauto);
VNET_DECLARE(u_int, ipport_hilastauto);
VNET_DECLARE(bool, ipport_randomized);
#define V_ipport_reservedhigh VNET(ipport_reservedhigh)
#define V_ipport_reservedlow VNET(ipport_reservedlow)
@@ -613,7 +612,6 @@ VNET_DECLARE(bool, ipport_randomized);
#define V_ipport_lastauto VNET(ipport_lastauto)
#define V_ipport_hifirstauto VNET(ipport_hifirstauto)
#define V_ipport_hilastauto VNET(ipport_hilastauto)
#define V_ipport_randomized VNET(ipport_randomized)
void in_pcbinfo_init(struct inpcbinfo *, struct inpcbstorage *,
u_int, u_int, u_int);