[PATCH 14/29] libnetworking: Add ip_nat_... (IP NAT hooks.

Christian Mauderer christian.mauderer at embedded-brains.de
Mon Apr 25 15:06:48 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 3940d92..477cd99 100644
--- a/cpukit/libnetworking/rtems/rtems_netinet_in.h
+++ b/cpukit/libnetworking/rtems/rtems_netinet_in.h
@@ -42,6 +42,14 @@ typedef	int ip_fw_ctl_t(int, struct mbuf**);
 extern	ip_fw_chk_t *ip_fw_chk_ptr;
 extern	ip_fw_ctl_t *ip_fw_ctl_ptr;
 
+/* IP NAT hooks */
+typedef	int ip_nat_t(struct ip**, struct mbuf**, struct ifnet*, int);
+typedef	int ip_nat_ctl_t(int, struct mbuf**);
+extern	ip_nat_t *ip_nat_ptr;
+extern	ip_nat_ctl_t *ip_nat_ctl_ptr;
+#define	IP_NAT_IN	0x00000001
+#define	IP_NAT_OUT	0x00000002
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
-- 
1.8.4.5



More information about the devel mailing list