Skip to content

Commit 3bbc552

Browse files
committed
Add ip_mreqn on FreeBSD
This was added in FreeBSD 13.0.0. See freebsd/freebsd-src@0dfc145a.
1 parent 6fbe3b7 commit 3bbc552

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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/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,

0 commit comments

Comments
 (0)