Skip to content

Commit bde366a

Browse files
committed
fix incorrectly signed ipi6_ifindex in notbsd
1 parent 3362a7f commit bde366a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ s! {
229229
pub nla_len: u16,
230230
pub nla_type: u16,
231231
}
232+
233+
pub struct in6_pktinfo {
234+
pub ipi6_addr: ::in6_addr,
235+
pub ipi6_ifindex: ::c_int,
236+
}
232237
}
233238

234239
pub const O_TRUNC: ::c_int = 512;

src/unix/notbsd/linux/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,11 @@ s! {
469469
pub version: u8,
470470
pub reserved: u16,
471471
}
472+
473+
pub struct in6_pktinfo {
474+
pub ipi6_addr: ::in6_addr,
475+
pub ipi6_ifindex: ::c_uint,
476+
}
472477
}
473478

474479
pub const ABDAY_1: ::nl_item = 0x20000;

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@ s! {
183183
pub ipi_spec_dst: ::in_addr,
184184
pub ipi_addr: ::in_addr,
185185
}
186-
187-
pub struct in6_pktinfo {
188-
pub ipi6_addr: ::in6_addr,
189-
pub ipi6_ifindex: ::c_uint,
190-
}
191186
}
192187

193188
// intentionally not public, only used for fd_set

0 commit comments

Comments
 (0)