Skip to content

Commit

Permalink
Add struct ip_mreqn to more Linux targets
Browse files Browse the repository at this point in the history
Support was previously added to gnu x86_64 and all musl targets but
others were not included because of a roundtrip issue [1].

This commit adds support for the ip_mreqn struct on all Linux GNU
targets which did not have the roundtrip issue.

[1]: #1558

Signed-off-by: Bartel Sielski <bartel.sielski@gmail.com>
  • Loading branch information
bartelsielski committed Sep 25, 2020
1 parent 87d3a32 commit f64da93
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ s! {
pub mem_unit: ::c_uint,
pub _f: [::c_char; 8],
}

pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}

pub const O_NOATIME: ::c_int = 0o1000000;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@ s! {
pub ss_flags: ::c_int,
pub ss_size: ::size_t
}

pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}

pub const VEOF: usize = 4;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ s! {
pub ss_flags: ::c_int,
pub ss_size: ::size_t
}

pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}

pub const POSIX_FADV_DONTNEED: ::c_int = 4;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ s! {
pub l_len: ::off64_t,
pub l_pid: ::pid_t,
}

pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}

pub const POSIX_FADV_DONTNEED: ::c_int = 4;
Expand Down

0 comments on commit f64da93

Please sign in to comment.