[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] netinet/in.h: Add ip_mreqn structure
From: |
Samuel Thibault |
Subject: |
[PATCH] netinet/in.h: Add ip_mreqn structure |
Date: |
Sat, 13 Aug 2022 23:03:53 +0200 |
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
- [PATCH] netinet/in.h: Add ip_mreqn structure,
Samuel Thibault <=