Skip to content

Commit

Permalink
Auto merge of #2625 - tamird:ip_mreqn, r=Amanieu
Browse files Browse the repository at this point in the history
Add `ip_mreqn` on more platforms

See individual commits; please do not squash on merge. `@Thomasdezeeuw`
  • Loading branch information
bors committed Jan 17, 2022
2 parents df679e8 + 037d741 commit 8cba30b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,7 @@ intptr_t
ioctl
iovec
ip_mreq
ip_mreqn
ip_mreq_source
ipv6_mreq
isalnum
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,7 @@ in6_pktinfo
in_pktinfo
initgroups
integer_t
ip_mreqn
ipc_perm
kern_return_t
kevent
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ if_nameindex
ifaddrs
in6_pktinfo
initgroups
ip_mreqn
ipc_perm
jail
jail_attach
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ s! {
pub imr_interface: in_addr,
}

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

pub struct aiocb {
pub aio_fildes: ::c_int,
pub aio_offset: ::off_t,
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ s! {
pub imr_interface: in_addr,
}

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

pub struct glob_t {
pub gl_pathc: ::size_t,
pub gl_matchc: ::size_t,
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ s! {
pub cmsg_type: ::c_int,
}

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

pub struct termios {
pub c_iflag: ::tcflag_t,
pub c_oflag: ::tcflag_t,
Expand Down

0 comments on commit 8cba30b

Please sign in to comment.