summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Balana <sbalana@google.com>2020-12-21 16:26:36 -0800
committerSam Balana <sbalana@google.com>2020-12-21 16:44:51 -0800
commita7f09b96e131c61c6a4ea8eec03761cec76b42dc (patch)
tree58527f0cadd6dfa330cbab251eb86b9e1b012055 /src
parentc7b9771cee8ff72954fc013d896e3b703c16db05 (diff)
downloadrust-libc-a7f09b96e131c61c6a4ea8eec03761cec76b42dc.tar.gz
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.
Diffstat (limited to 'src')
-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,