Skip to content

Commit 44b9022

Browse files
committed
Add struct ip_mreqn: ip multicast req with intf id
The ip_mreqn struct has an additional interface id parameter. This allows programming IPv4 multicast groups using the interface id alongside the src IPv4 address. Linux has supported the ip_mreqn struct since Linux 2.2 ref: man ip.7 [Adding to linux x86_64 only as adding to linux_like/mod.rs caused failures in the sparc64 and mips64 C regression tests]
1 parent ab654a6 commit 44b9022

File tree

1 file changed

+6
-0
lines changed
  • src/unix/linux_like/linux/gnu/b64/x86_64

1 file changed

+6
-0
lines changed

src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ s! {
261261
pub c_ispeed: ::speed_t,
262262
pub c_ospeed: ::speed_t,
263263
}
264+
265+
pub struct ip_mreqn {
266+
pub imr_multiaddr: ::in_addr,
267+
pub imr_address: ::in_addr,
268+
pub imr_ifindex: ::c_int,
269+
}
264270
}
265271

266272
s_no_extra_traits! {

0 commit comments

Comments
 (0)