Skip to content

Commit 978edec

Browse files
authored
Merge pull request #4381 from tgross35/freebsd-deprecate-pcap
FreeBSD: Deprecate TCP_PCAP_OUT and TCP_PCAP_IN
2 parents 057bb14 + c8f0910 commit 978edec

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,6 +2783,9 @@ fn test_freebsd(target: &str) {
27832783
// Added in FreeBSD 14.0
27842784
"TCP_FUNCTION_ALIAS" if Some(14) > freebsd_ver => true,
27852785

2786+
// FIXME(freebsd): Removed in FreeBSD 15, deprecated in libc
2787+
"TCP_PCAP_OUT" | "TCP_PCAP_IN" => true,
2788+
27862789
_ => false,
27872790
}
27882791
});

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3762,7 +3762,9 @@ pub const TCP_PERF_INFO: c_int = 78;
37623762
pub const TCP_LRD: c_int = 79;
37633763
pub const TCP_KEEPINIT: c_int = 128;
37643764
pub const TCP_FASTOPEN: c_int = 1025;
3765+
#[deprecated(since = "0.2.171", note = "removed in FreeBSD 15")]
37653766
pub const TCP_PCAP_OUT: c_int = 2048;
3767+
#[deprecated(since = "0.2.171", note = "removed in FreeBSD 15")]
37663768
pub const TCP_PCAP_IN: c_int = 4096;
37673769
pub const TCP_FUNCTION_BLK: c_int = 8192;
37683770
pub const TCP_FUNCTION_ALIAS: c_int = 8193;

0 commit comments

Comments
 (0)