]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move ip_mreqn structure from Linux to generic
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 13 Aug 2022 21:02:51 +0000 (23:02 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 15 Aug 2022 20:43:15 +0000 (22:43 +0200)
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>
inet/netinet/in.h
sysdeps/unix/sysv/linux/bits/in.h

index 1633bc64e43b22bb6600341096be0e4b3c6218f2..362eb9e9e7296ee7d95cba1621314b794552100a 100644 (file)
@@ -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.  */
index af6898a5ceaf9cd34039db6773b5470dce0bb354..00d10d812c0c0c647b59f02aaec69c062b645fe8 100644 (file)
@@ -146,14 +146,6 @@ struct ip_opts
     char ip_opts[40];          /* Actually variable in size.  */
   };
 
-/* Like `struct ip_mreq' but including interface specification by index.  */
-struct ip_mreqn
-  {
-    struct in_addr imr_multiaddr;      /* IP multicast address of group */
-    struct in_addr imr_address;                /* local IP address of interface */
-    int        imr_ifindex;                    /* Interface index */
-  };
-
 /* Structure used for IP_PKTINFO.  */
 struct in_pktinfo
   {