Skip to content

Commit 8cba30b

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 + 037d741 commit 8cba30b

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

libc-test/semver/android.txt

+1
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

+1
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

+1
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

+6
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

+6
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/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ s! {
7373
pub cmsg_type: ::c_int,
7474
}
7575

76+
pub struct ip_mreqn {
77+
pub imr_multiaddr: ::in_addr,
78+
pub imr_address: ::in_addr,
79+
pub imr_ifindex: ::c_int,
80+
}
81+
7682
pub struct termios {
7783
pub c_iflag: ::tcflag_t,
7884
pub c_oflag: ::tcflag_t,

0 commit comments

Comments
 (0)