From a2ee8c6500fdaff03019928d916d166ee266e1f5 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 13 Aug 2022 23:02:51 +0200 Subject: Move ip_mreqn structure from Linux to generic I.e. from sysdeps/unix/sysv/linux/bits/in.h to netinet/in.h It is following both the BSD and Linux definitions. Reviewed-by: Florian Weimer --- inet/netinet/in.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'inet') diff --git a/inet/netinet/in.h b/inet/netinet/in.h index 1633bc6..362eb9e 100644 --- a/inet/netinet/in.h +++ b/inet/netinet/in.h @@ -278,6 +278,19 @@ struct ip_mreq struct in_addr imr_interface; }; +/* IPv4 multicast request with interface index. */ +struct ip_mreqn + { + /* IP multicast address of group. */ + struct in_addr imr_multiaddr; + + /* Local IP address of interface. */ + struct in_addr imr_address; + + /* Interface index. */ + int imr_ifindex; + }; + struct ip_mreq_source { /* IP multicast address of group. */ -- cgit v1.1