summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 07:24:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-06-07 13:02:21 +0200
commit26ccd139dc42c0abaafd5532729cb7d32afac9cf (patch)
tree8ac9f15fca1613498edf0da7b8efe23ea5038b4e /cpukit/libnetworking/rtems
parentnetwork: Use inet_ntoa_r() (diff)
downloadrtems-26ccd139dc42c0abaafd5532729cb7d32afac9cf.tar.bz2
network: Header file compatiblity
Move legacy network stack implementation specifics to <rtems/rtems_bsdnet_internal.h>. Include missing header files. Add interface flags compatibility. Update #2833.
Diffstat (limited to 'cpukit/libnetworking/rtems')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h29
-rw-r--r--cpukit/libnetworking/rtems/rtems_showifstat.c1
-rw-r--r--cpukit/libnetworking/rtems/rtems_showroute.c1
3 files changed, 31 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 9608996078..d103c56153 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -249,6 +249,35 @@ void rtems_set_tcp_buffer_sizes(u_long, u_long);
void rtems_set_sb_efficiency(u_long);
+#define IFF_OACTIVE IFF_DRV_OACTIVE
+#define IFF_RUNNING IFF_DRV_RUNNING
+
+struct ifaddr;
+void ifafree(struct ifaddr *);
+
+struct ifnet;
+struct mbuf;
+struct sockaddr;
+struct rtentry;
+int looutput(struct ifnet *,
+ struct mbuf *, struct sockaddr *, struct rtentry *);
+
+typedef u_long tcp_cc; /* connection count per rfc1644 */
+
+#define TCPOPT_TSTAMP_HDR \
+ (uint32_t)(((uint32_t)TCPOPT_NOP<<24)| \
+ ((uint32_t)TCPOPT_NOP<<16)| \
+ ((uint32_t)TCPOPT_TIMESTAMP<<8)| \
+ ((uint32_t)TCPOLEN_TIMESTAMP))
+
+#define TCPOPT_CC 11 /* CC options: RFC-1644 */
+#define TCPOPT_CCNEW 12
+#define TCPOPT_CCECHO 13
+#define TCPOLEN_CC 6
+#define TCPOLEN_CC_APPA (TCPOLEN_CC+2)
+#define TCPOPT_CC_HDR(ccopt) \
+ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|(ccopt)<<8|TCPOLEN_CC)
+
#ifdef __cplusplus
}
#endif
diff --git a/cpukit/libnetworking/rtems/rtems_showifstat.c b/cpukit/libnetworking/rtems/rtems_showifstat.c
index a936cf7458..d13efa6129 100644
--- a/cpukit/libnetworking/rtems/rtems_showifstat.c
+++ b/cpukit/libnetworking/rtems/rtems_showifstat.c
@@ -12,6 +12,7 @@
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <net/if.h>
+#include <net/if_var.h>
#include <net/if_dl.h>
#include <net/if_types.h>
#include <netinet/in.h>
diff --git a/cpukit/libnetworking/rtems/rtems_showroute.c b/cpukit/libnetworking/rtems/rtems_showroute.c
index 30545d26d1..fb85ff2d3c 100644
--- a/cpukit/libnetworking/rtems/rtems_showroute.c
+++ b/cpukit/libnetworking/rtems/rtems_showroute.c
@@ -14,6 +14,7 @@
#include <sys/domain.h>
#include <net/if.h>
+#include <net/if_var.h>
#include <net/if_dl.h>
#include <net/route.h>