From 7fc5940d485e4d7dc5d115e9adbd67ce5e0f6165 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 10 Dec 2024 21:48:49 +0000 Subject: [PATCH] freebsd add more socket TCP stack constants. [ref](https://man.freebsd.org/cgi/man.cgi?query=tcp) (backport ) (cherry picked from commit abf49f6700de09c1a1801226f8e973a455e6eb43) --- libc-test/semver/freebsd.txt | 22 ++++++++++++++++++++++ src/unix/bsd/freebsdlike/freebsd/mod.rs | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt index 853e4c0043ddc..486d11e64a60a 100644 --- a/libc-test/semver/freebsd.txt +++ b/libc-test/semver/freebsd.txt @@ -1504,6 +1504,17 @@ S_IWRITE TAB0 TAB3 TABDLY +TCP_BBR_ALGORITHM +TCP_BBR_DRAIN_PG +TCP_BBR_IWINTSO +TCP_BBR_MAX_RTO +TCP_BBR_MIN_RTO +TCP_BBR_PACE_OH +TCP_BBR_PROBE_RTT_INT +TCP_BBR_STARTUP_LOSS_EXIT +TCP_BBR_STARTUP_PG +TCP_BBR_TSLIMITS +TCP_BBR_USEDEL_RATE TCP_CCALGOOPT TCP_CONGESTION TCP_DELACK @@ -1530,7 +1541,18 @@ TCP_PCAP_IN TCP_PCAP_OUT TCP_PERF_INFO TCP_PROC_ACCOUNTING +TCP_RACK_EARLY_SEG +TCP_RACK_MBUF_QUEUE +TCP_RACK_MIN_TO +TCP_RACK_PACE_ALWAYS +TCP_RACK_PACE_MAX_SEG +TCP_RACK_PKT_DELAY +TCP_RACK_PRR_SENDALOT +TCP_RACK_REORD_FADE +TCP_RACK_REORD_THRESH +TCP_RACK_TLP_REDUCE TCP_REMOTE_UDP_ENCAPS_PORT +TCP_REUSPORT_LB_NUMA TCP_SHARED_CWND_ALLOWED TCP_USE_CMP_ACKS THOUSEP diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 72e5e7fdae553..ae4e366afdd48 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3764,6 +3764,30 @@ pub const TCP_FUNCTION_ALIAS: c_int = 8193; pub const TCP_FASTOPEN_PSK_LEN: c_int = 16; pub const TCP_FUNCTION_NAME_LEN_MAX: c_int = 32; +pub const TCP_REUSPORT_LB_NUMA: c_int = 1026; +pub const TCP_RACK_MBUF_QUEUE: c_int = 1050; +pub const TCP_RACK_TLP_REDUCE: c_int = 1052; +pub const TCP_RACK_PACE_MAX_SEG: c_int = 1054; +pub const TCP_RACK_PACE_ALWAYS: c_int = 1055; +pub const TCP_RACK_PRR_SENDALOT: c_int = 1057; +pub const TCP_RACK_MIN_TO: c_int = 1058; +pub const TCP_RACK_EARLY_SEG: c_int = 1060; +pub const TCP_RACK_REORD_THRESH: c_int = 1061; +pub const TCP_RACK_REORD_FADE: c_int = 1062; +pub const TCP_RACK_TLP_THRESH: c_int = 1063; +pub const TCP_RACK_PKT_DELAY: c_int = 1064; +pub const TCP_BBR_IWINTSO: c_int = 1067; +pub const TCP_BBR_STARTUP_PG: c_int = 1069; +pub const TCP_BBR_DRAIN_PG: c_int = 1070; +pub const TCP_BBR_PROBE_RTT_INT: c_int = 1072; +pub const TCP_BBR_STARTUP_LOSS_EXIT: c_int = 1074; +pub const TCP_BBR_TSLIMITS: c_int = 1076; +pub const TCP_BBR_PACE_OH: c_int = 1077; +pub const TCP_BBR_USEDEL_RATE: c_int = 1079; +pub const TCP_BBR_MIN_RTO: c_int = 1080; +pub const TCP_BBR_MAX_RTO: c_int = 1081; +pub const TCP_BBR_ALGORITHM: c_int = 1083; + pub const IP_BINDANY: c_int = 24; pub const IP_BINDMULTI: c_int = 25; pub const IP_RSS_LISTEN_BUCKET: c_int = 26;