Skip to content

Commit 121f28a

Browse files
authored
Merge pull request #4047 from asomers/tcp_function_blk
Add the TCP_FUNCTION_BLK and TCP_FUNCTION_ALIAS socket options
2 parents eb00e57 + 2e8be88 commit 121f28a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,6 +2530,9 @@ fn test_freebsd(target: &str) {
25302530
// FIXME: The values has been changed in FreeBSD 15:
25312531
"CLOCK_BOOTTIME" if Some(15) <= freebsd_ver => true,
25322532

2533+
// Added in FreeBSD 14.0
2534+
"TCP_FUNCTION_ALIAS" if Some(14) > freebsd_ver => true,
2535+
25332536
_ => false,
25342537
}
25352538
});

libc-test/semver/freebsd.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,8 @@ TCP_DELACK
15101510
TCP_FASTOPEN
15111511
TCP_FASTOPEN_PSK_LEN
15121512
TCP_FIN_IS_RST
1513+
TCP_FUNCTION_ALIAS
1514+
TCP_FUNCTION_BLK
15131515
TCP_FUNCTION_NAME_LEN_MAX
15141516
TCP_IDLE_REDUCE
15151517
TCP_INFO

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,6 +3827,8 @@ pub const TCP_KEEPINIT: ::c_int = 128;
38273827
pub const TCP_FASTOPEN: ::c_int = 1025;
38283828
pub const TCP_PCAP_OUT: ::c_int = 2048;
38293829
pub const TCP_PCAP_IN: ::c_int = 4096;
3830+
pub const TCP_FUNCTION_BLK: ::c_int = 8192;
3831+
pub const TCP_FUNCTION_ALIAS: ::c_int = 8193;
38303832
pub const TCP_FASTOPEN_PSK_LEN: ::c_int = 16;
38313833
pub const TCP_FUNCTION_NAME_LEN_MAX: ::c_int = 32;
38323834

0 commit comments

Comments
 (0)