[PATCH 19/27] libnetworking: Add IP_NAT option for get/setsockopt.

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Jun 24 09:38:38 UTC 2016


From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>

---
 cpukit/libnetworking/rtems/rtems_netinet_in.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/cpukit/libnetworking/rtems/rtems_netinet_in.h b/cpukit/libnetworking/rtems/rtems_netinet_in.h
index 477cd99..c2da532 100644
--- a/cpukit/libnetworking/rtems/rtems_netinet_in.h
+++ b/cpukit/libnetworking/rtems/rtems_netinet_in.h
@@ -50,6 +50,14 @@ extern	ip_nat_ctl_t *ip_nat_ctl_ptr;
 #define	IP_NAT_IN	0x00000001
 #define	IP_NAT_OUT	0x00000002
 
+/*
+ * Options for use with [gs]etsockopt at the IP level.
+ *
+ * The value is stored in an integer. Use negative numbers to avoid conflicts
+ * with BSD.
+ */
+#define IP_NAT			(-55)   /* set/get NAT opts */
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
-- 
1.8.4.5




More information about the devel mailing list