mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
inpcb: make ipport_randomized static
This commit is contained in:
1 parent
1594fbd7f2
commit
4488a4f048
2 files changed
+2
-3
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user