Skip to content

Commit b2cd590

Browse files
committed
Auto merge of #2648 - mcginty:openbsd-ip_mreqn, r=Amanieu
Define ip_mreqn on OpenBSD Essentially an extension of #2625 Reference: https://man.openbsd.org/ip.4
2 parents 157bcec + 2cfa3e9 commit b2cd590

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ if_nameindex
999999
ifaddrs
10001000
in6_pktinfo
10011001
initgroups
1002+
ip_mreqn
10021003
ipc_perm
10031004
iso_args
10041005
kevent

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ cfg_if! {
4848
}
4949

5050
s! {
51+
pub struct ip_mreqn {
52+
pub imr_multiaddr: in_addr,
53+
pub imr_address: in_addr,
54+
pub imr_ifindex: ::c_int,
55+
}
56+
5157
pub struct glob_t {
5258
pub gl_pathc: ::size_t,
5359
pub gl_matchc: ::size_t,

0 commit comments

Comments
 (0)