Skip to content

Commit

Permalink
freebsd add more socket TCP stack constants.
Browse files Browse the repository at this point in the history
[ref](https://man.freebsd.org/cgi/man.cgi?query=tcp)

(backport <rust-lang#4193>)
(cherry picked from commit abf49f6)
  • Loading branch information
devnexen authored and tgross35 committed Dec 18, 2024
1 parent fabe9c1 commit 7fc5940
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
24 changes: 24 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7fc5940

Please sign in to comment.