about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-13 23:02:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-15 22:43:15 +0200
commita2ee8c6500fdaff03019928d916d166ee266e1f5 (patch)
tree250ba1302e83a9d844a2f2ce10727856c7bca4b8 /inet
parent85860ad6eaf4c9739318f6b2a1ff7c2fa6b12ab5 (diff)
downloadglibc-a2ee8c6500fdaff03019928d916d166ee266e1f5.tar.gz
glibc-a2ee8c6500fdaff03019928d916d166ee266e1f5.tar.xz
glibc-a2ee8c6500fdaff03019928d916d166ee266e1f5.zip
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 <fweimer@redhat.com>
Diffstat (limited to 'inet')
-rw-r--r--inet/netinet/in.h13
1 files changed, 13 insertions, 0 deletions
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.  */