summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_sys_socket.h
diff options
context:
space:
mode:
authorJustin R. Wilson <wilsonj@objectcomputing.com>2019-02-21 09:22:09 -0600
committerJustin R. Wilson <wilsonj@objectcomputing.com>2019-02-22 09:48:09 -0600
commitfa2ecd983d5a4f844b9ee419bcd73edc23d1408c (patch)
tree6f2a41f3735521a4920b6c4a580076e0d0c8aa70 /ACE/ace/OS_NS_sys_socket.h
parentb584d571ee82182fb39a572f24fd8083e50eb0ec (diff)
downloadATCD-fa2ecd983d5a4f844b9ee419bcd73edc23d1408c.tar.gz
Provide option for local address for SOCK_Dgram recvmsg
Diffstat (limited to 'ACE/ace/OS_NS_sys_socket.h')
-rw-r--r--ACE/ace/OS_NS_sys_socket.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_sys_socket.h b/ACE/ace/OS_NS_sys_socket.h
index aa814443362..1f972a9f24d 100644
--- a/ACE/ace/OS_NS_sys_socket.h
+++ b/ACE/ace/OS_NS_sys_socket.h
@@ -58,6 +58,20 @@
#define ACE_SHUTDOWN_BOTH 2
#endif /* SD_BOTH */
+#if defined (IP_RECVDSTADDR)
+#define ACE_RECVPKTINFO IP_RECVDSTADDR
+#elif defined (IP_PKTINFO)
+#define ACE_RECVPKTINFO IP_PKTINFO
+#endif
+
+#if defined (ACE_HAS_IPV6)
+#if defined (IPV6_PKTINFO)
+#define ACE_RECVPKTINFO6 IPV6_PKTINFO
+#elif defined (IPV6_RECVPKTINFO)
+#define ACE_RECVPKTINFO6 IPV6_RECVPKTINFO
+#endif
+#endif
+
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Accept_QoS_Params;