[PATCH] netinet/in.h: Add ip_mreqn structure

Samuel Thibault samuel.thibault@ens-lyon.org
Sat Aug 13 21:03:53 GMT 2022


This is following the BSD and Linux definition.
---
 inet/netinet/in.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index 1633bc64e4..362eb9e9e7 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.  */
-- 
2.35.1



More information about the Libc-alpha mailing list