mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Declare pmtud_blackhole global variables in tcp_timer.h, so that
alternative TCP stacks can legally use them.
This commit is contained in:
parent
11a7f121b8
commit
e29c55e4bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324374
@ -141,16 +141,14 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, rexmit_drop_options, CTLFLAG_RW,
|
||||
&tcp_rexmit_drop_options, 0,
|
||||
"Drop TCP options from 3rd and later retransmitted SYN");
|
||||
|
||||
static VNET_DEFINE(int, tcp_pmtud_blackhole_detect);
|
||||
#define V_tcp_pmtud_blackhole_detect VNET(tcp_pmtud_blackhole_detect)
|
||||
VNET_DEFINE(int, tcp_pmtud_blackhole_detect);
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, pmtud_blackhole_detection,
|
||||
CTLFLAG_RW|CTLFLAG_VNET,
|
||||
&VNET_NAME(tcp_pmtud_blackhole_detect), 0,
|
||||
"Path MTU Discovery Black Hole Detection Enabled");
|
||||
|
||||
#ifdef INET
|
||||
static VNET_DEFINE(int, tcp_pmtud_blackhole_mss) = 1200;
|
||||
#define V_tcp_pmtud_blackhole_mss VNET(tcp_pmtud_blackhole_mss)
|
||||
VNET_DEFINE(int, tcp_pmtud_blackhole_mss) = 1200;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, pmtud_blackhole_mss,
|
||||
CTLFLAG_RW|CTLFLAG_VNET,
|
||||
&VNET_NAME(tcp_pmtud_blackhole_mss), 0,
|
||||
@ -158,8 +156,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, pmtud_blackhole_mss,
|
||||
#endif
|
||||
|
||||
#ifdef INET6
|
||||
static VNET_DEFINE(int, tcp_v6pmtud_blackhole_mss) = 1220;
|
||||
#define V_tcp_v6pmtud_blackhole_mss VNET(tcp_v6pmtud_blackhole_mss)
|
||||
VNET_DEFINE(int, tcp_v6pmtud_blackhole_mss) = 1220;
|
||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, v6pmtud_blackhole_mss,
|
||||
CTLFLAG_RW|CTLFLAG_VNET,
|
||||
&VNET_NAME(tcp_v6pmtud_blackhole_mss), 0,
|
||||
|
@ -198,6 +198,13 @@ extern int tcp_syn_backoff[];
|
||||
extern int tcp_finwait2_timeout;
|
||||
extern int tcp_fast_finwait2_recycle;
|
||||
|
||||
VNET_DECLARE(int, tcp_pmtud_blackhole_detect);
|
||||
#define V_tcp_pmtud_blackhole_detect VNET(tcp_pmtud_blackhole_detect)
|
||||
VNET_DECLARE(int, tcp_pmtud_blackhole_mss);
|
||||
#define V_tcp_pmtud_blackhole_mss VNET(tcp_pmtud_blackhole_mss)
|
||||
VNET_DECLARE(int, tcp_v6pmtud_blackhole_mss);
|
||||
#define V_tcp_v6pmtud_blackhole_mss VNET(tcp_v6pmtud_blackhole_mss)
|
||||
|
||||
int tcp_inpinfo_lock_add(struct inpcb *inp);
|
||||
void tcp_inpinfo_lock_del(struct inpcb *inp, struct tcpcb *tp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user