public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] netinet/in.h: Add ip_mreqn structure
@ 2022-08-13 21:03 Samuel Thibault
  2022-08-15 13:13 ` Florian Weimer
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Thibault @ 2022-08-13 21:03 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-15 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 21:03 [PATCH] netinet/in.h: Add ip_mreqn structure Samuel Thibault
2022-08-15 13:13 ` Florian Weimer
2022-08-15 17:15   ` Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).