Skip to content

Commit a7f09b9

Browse files
committed
Add ip_mreqn for Fuchsia
Adds the ip_mreqn struct for the Fuchsia platform, as defined by ip(7). Enables joining an IPv4 multicast group by NIC ID rather than by its assigned IPv4 address.
1 parent c7b9771 commit a7f09b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fuchsia/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ s! {
209209
pub imr_interface: in_addr,
210210
}
211211

212+
pub struct ip_mreqn {
213+
pub imr_multiaddr: in_addr,
214+
pub imr_address: in_addr,
215+
pub imr_ifindex: ::c_int,
216+
}
217+
212218
pub struct ipv6_mreq {
213219
pub ipv6mr_multiaddr: in6_addr,
214220
pub ipv6mr_interface: ::c_uint,

0 commit comments

Comments
 (0)