Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_subr.c
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | SYSCTL_INT(_net_inet_tcp, OID_AUTO, minmss, CTLFLAG_VNET | CTLFLAG_RW, | ||||
&VNET_NAME(tcp_minmss), 0, | &VNET_NAME(tcp_minmss), 0, | ||||
"Minimum TCP Maximum Segment Size"); | "Minimum TCP Maximum Segment Size"); | ||||
VNET_DEFINE(int, tcp_do_rfc1323) = 1; | VNET_DEFINE(int, tcp_do_rfc1323) = 1; | ||||
SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_VNET | CTLFLAG_RW, | SYSCTL_INT(_net_inet_tcp, TCPCTL_DO_RFC1323, rfc1323, CTLFLAG_VNET | CTLFLAG_RW, | ||||
&VNET_NAME(tcp_do_rfc1323), 0, | &VNET_NAME(tcp_do_rfc1323), 0, | ||||
"Enable rfc1323 (high performance TCP) extensions"); | "Enable rfc1323 (high performance TCP) extensions"); | ||||
VNET_DEFINE(int, tcp_tolerate_missing_ts) = 0; | /* | ||||
* As of June 2021, several TCP stacks violate RFC 7323 from September 2014: | |||||
* - Omniswitch 63xx and 64xx models (negotiating TS, but not sending them). | |||||
* - HP LaserJet 500 color M551dn (negotiating TS, but not sending them). | |||||
* - IPFW TCP keep-alive injection (not sending TS when injecting packets). | |||||
* - Mac OS 11.4 (negotiating TS, but not sending TS on keep-alive packets). | |||||
* Therefore tolerating violations for now... | |||||
*/ | |||||
VNET_DEFINE(int, tcp_tolerate_missing_ts) = 1; | |||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, tolerate_missing_ts, CTLFLAG_VNET | CTLFLAG_RW, | SYSCTL_INT(_net_inet_tcp, OID_AUTO, tolerate_missing_ts, CTLFLAG_VNET | CTLFLAG_RW, | ||||
&VNET_NAME(tcp_tolerate_missing_ts), 0, | &VNET_NAME(tcp_tolerate_missing_ts), 0, | ||||
"Tolerate missing TCP timestamps"); | "Tolerate missing TCP timestamps"); | ||||
VNET_DEFINE(int, tcp_ts_offset_per_conn) = 1; | VNET_DEFINE(int, tcp_ts_offset_per_conn) = 1; | ||||
SYSCTL_INT(_net_inet_tcp, OID_AUTO, ts_offset_per_conn, CTLFLAG_VNET | CTLFLAG_RW, | SYSCTL_INT(_net_inet_tcp, OID_AUTO, ts_offset_per_conn, CTLFLAG_VNET | CTLFLAG_RW, | ||||
&VNET_NAME(tcp_ts_offset_per_conn), 0, | &VNET_NAME(tcp_ts_offset_per_conn), 0, | ||||
"Initialize TCP timestamps per connection instead of per host pair"); | "Initialize TCP timestamps per connection instead of per host pair"); | ||||
▲ Show 20 Lines • Show All 3,817 Lines • Show Last 20 Lines |