Skip to content

Commit eb3ff11

Browse files
committed
Update FreeBSD 14 CI image to 14.0-RC1
And update the definition of struct tcp_info for FreeBSD 14.
1 parent 2f43f14 commit eb3ff11

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ task:
2929
task:
3030
name: nightly x86_64-unknown-freebsd-14
3131
freebsd_instance:
32-
image: freebsd-14-0-beta2-amd64
32+
image: freebsd-14-0-rc1-amd64
3333
setup_script:
3434
- pkg install -y libnghttp2 curl
3535
- curl https://sh.rustup.rs -sSf --output rustup.sh

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,8 @@ s! {
998998
pub pcbcnt: u32,
999999
}
10001000

1001+
// Note: this structure will change in a backwards-incompatible way in
1002+
// FreeBSD 15.
10011003
pub struct tcp_info {
10021004
pub tcpi_state: u8,
10031005
pub __tcpi_ca_state: u8,
@@ -1055,7 +1057,21 @@ s! {
10551057
#[cfg(freebsd14)]
10561058
pub __tcpi_received_ce_bytes: u32,
10571059
#[cfg(freebsd14)]
1058-
pub __tcpi_pad: [u32; 19],
1060+
pub tcpi_total_tlp: u32,
1061+
#[cfg(freebsd14)]
1062+
pub tcpi_total_tlp_bytes: u64,
1063+
#[cfg(freebsd14)]
1064+
pub tcpi_snd_una: u32,
1065+
#[cfg(freebsd14)]
1066+
pub tcpi_snd_max: u32,
1067+
#[cfg(freebsd14)]
1068+
pub tcpi_rcv_numsacks: u32,
1069+
#[cfg(freebsd14)]
1070+
pub tcpi_rcv_adv: u32,
1071+
#[cfg(freebsd14)]
1072+
pub tcpi_dupacks: u32,
1073+
#[cfg(freebsd14)]
1074+
pub __tcpi_pad: [u32; 10],
10591075
#[cfg(not(freebsd14))]
10601076
pub __tcpi_pad: [u32; 26],
10611077
}

0 commit comments

Comments
 (0)