Skip to content

Commit dd095aa

Browse files
committed
Auto merge of #2625 - tamird:ip_mreqn, r=Amanieu
Add `ip_mreqn` on more platforms See individual commits; please do not squash on merge. `@Thomasdezeeuw`
2 parents df679e8 + 163272b commit dd095aa

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,6 +2844,7 @@ intptr_t
28442844
ioctl
28452845
iovec
28462846
ip_mreq
2847+
ip_mreqn
28472848
ip_mreq_source
28482849
ipv6_mreq
28492850
isalnum

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ in6_pktinfo
17241724
in_pktinfo
17251725
initgroups
17261726
integer_t
1727+
ip_mreqn
17271728
ipc_perm
17281729
kern_return_t
17291730
kevent

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ if_nameindex
15361536
ifaddrs
15371537
in6_pktinfo
15381538
initgroups
1539+
ip_mreqn
15391540
ipc_perm
15401541
jail
15411542
jail_attach

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ s! {
215215
pub imr_interface: in_addr,
216216
}
217217

218+
pub struct ip_mreqn {
219+
pub imr_multiaddr: in_addr,
220+
pub imr_address: in_addr,
221+
pub imr_ifindex: ::c_int,
222+
}
223+
218224
pub struct aiocb {
219225
pub aio_fildes: ::c_int,
220226
pub aio_offset: ::off_t,

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ s! {
9090
pub imr_interface: in_addr,
9191
}
9292

93+
pub struct ip_mreqn {
94+
pub imr_multiaddr: in_addr,
95+
pub imr_address: in_addr,
96+
pub imr_ifindex: ::c_int,
97+
}
98+
9399
pub struct glob_t {
94100
pub gl_pathc: ::size_t,
95101
pub gl_matchc: ::size_t,

src/unix/linux_like/android/b64/x86_64/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ pub type greg_t = i64;
44
pub type __u64 = ::c_ulonglong;
55

66
s! {
7+
pub struct ip_mreqn {
8+
pub imr_multiaddr: ::in_addr,
9+
pub imr_address: ::in_addr,
10+
pub imr_ifindex: ::c_int,
11+
}
12+
713
pub struct stat {
814
pub st_dev: ::dev_t,
915
pub st_ino: ::ino_t,

0 commit comments

Comments
 (0)