Skip to content
Snippets Groups Projects
Commit f64da93c authored by Bartel Sielski's avatar Bartel Sielski
Browse files

Add struct ip_mreqn to more Linux targets

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]: https://github.com/rust-lang/libc/issues/1558



Signed-off-by: default avatarBartel Sielski <bartel.sielski@gmail.com>
parent 87d3a326
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment