summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-24 03:08:57 +0000
committerbors <bors@rust-lang.org>2020-12-24 03:08:57 +0000
commitb1ee97b6178bd543a534f7016d3a19684dd889f5 (patch)
tree58527f0cadd6dfa330cbab251eb86b9e1b012055
parentc7b9771cee8ff72954fc013d896e3b703c16db05 (diff)
parenta7f09b96e131c61c6a4ea8eec03761cec76b42dc (diff)
downloadrust-libc-b1ee97b6178bd543a534f7016d3a19684dd889f5.tar.gz
Auto merge of #2003 - puradox:patch-1, r=JohnTitor
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.
-rw-r--r--src/fuchsia/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index cd42f9a243..1ef2fadc76 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -209,6 +209,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 ipv6_mreq {
pub ipv6mr_multiaddr: in6_addr,
pub ipv6mr_interface: ::c_uint,