Skip to content

Commit 0432d6b

Browse files
asomerstgross35
authored andcommitted
Add the TCP_FUNCTION_BLK and TCP_FUNCTION_ALIAS socket options
For FreeBSD only (backport <rust-lang#4047>) (cherry picked from commit 2e8be88)
1 parent 71b550a commit 0432d6b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

libc-test/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,9 @@ fn test_freebsd(target: &str) {
25852585
// FIXME: The values has been changed in FreeBSD 15:
25862586
"CLOCK_BOOTTIME" if Some(15) <= freebsd_ver => true,
25872587

2588+
// Added in FreeBSD 14.0
2589+
"TCP_FUNCTION_ALIAS" if Some(14) > freebsd_ver => true,
2590+
25882591
_ => false,
25892592
}
25902593
});

libc-test/semver/freebsd.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1505,6 +1505,8 @@ TCP_DELACK
15051505
TCP_FASTOPEN
15061506
TCP_FASTOPEN_PSK_LEN
15071507
TCP_FIN_IS_RST
1508+
TCP_FUNCTION_ALIAS
1509+
TCP_FUNCTION_BLK
15081510
TCP_FUNCTION_NAME_LEN_MAX
15091511
TCP_IDLE_REDUCE
15101512
TCP_INFO

src/unix/bsd/freebsdlike/freebsd/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3895,6 +3895,8 @@ pub const TCP_KEEPINIT: ::c_int = 128;
38953895
pub const TCP_FASTOPEN: ::c_int = 1025;
38963896
pub const TCP_PCAP_OUT: ::c_int = 2048;
38973897
pub const TCP_PCAP_IN: ::c_int = 4096;
3898+
pub const TCP_FUNCTION_BLK: ::c_int = 8192;
3899+
pub const TCP_FUNCTION_ALIAS: ::c_int = 8193;
38983900
pub const TCP_FASTOPEN_PSK_LEN: ::c_int = 16;
38993901
pub const TCP_FUNCTION_NAME_LEN_MAX: ::c_int = 32;
39003902

0 commit comments

Comments
 (0)