[PATCH 08/29] libnetworking: Add IPPORT_USERRESERVED.
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Apr 25 15:06:42 UTC 2016
From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
---
cpukit/libnetworking/netinet/in_pcb.c | 1 +
cpukit/libnetworking/rtems/rtems_netinet_in.h | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/cpukit/libnetworking/netinet/in_pcb.c b/cpukit/libnetworking/netinet/in_pcb.c
index c41e634..1cd9c92 100644
--- a/cpukit/libnetworking/netinet/in_pcb.c
+++ b/cpukit/libnetworking/netinet/in_pcb.c
@@ -54,6 +54,7 @@
#include <net/route.h>
#include <netinet/in.h>
+#include <rtems/rtems_netinet_in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/in_pcb.h>
diff --git a/cpukit/libnetworking/rtems/rtems_netinet_in.h b/cpukit/libnetworking/rtems/rtems_netinet_in.h
index 0f7b091..b3aebdc 100644
--- a/cpukit/libnetworking/rtems/rtems_netinet_in.h
+++ b/cpukit/libnetworking/rtems/rtems_netinet_in.h
@@ -21,6 +21,12 @@
extern "C" {
#endif /* __cplusplus */
+/*
+ * Ports > IPPORT_USERRESERVED are reserved
+ * for servers, not necessarily privileged. (IP_PORTRANGE_DEFAULT)
+ */
+#define IPPORT_USERRESERVED 5000
+
int in_cksum(struct mbuf *, int);
#ifdef __cplusplus
--
1.8.4.5
More information about the devel
mailing list