summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 15:27:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-19 15:27:21 +0000
commitac91855d33cd58ed06b70ffd2dd48b96d8bc3d4d (patch)
tree566ac1465ac8789fb224fc43d4bdd34293c23ab7 /cpukit/libnetworking
parentAfter discussion with Eric Norum <eric@skatter.usask.ca>, (diff)
downloadrtems-ac91855d33cd58ed06b70ffd2dd48b96d8bc3d4d.tar.bz2
After discussion with Eric Norum <eric@skatter.usask.ca>,
I added __INSIDE_RTEMS_BSD_TCPIP_STACK__ that trips all the needed macro definitions for a network driver.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet.h b/cpukit/libnetworking/rtems/rtems_bsdnet.h
index 6447749f80..3152099525 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet.h
@@ -8,6 +8,28 @@
#include <rtems.h>
/*
+ * If this file is included from inside the Network Stack proper or
+ * a device driver, then __INSIDE_RTEMS_BSD_TCPIP_STACK__ should be
+ * defined. This triggers a number of internally used definitions.
+ */
+
+#if defined(__INSIDE_RTEMS_BSD_TCPIP_STACK__)
+#undef _COMPILING_BSD_KERNEL_
+#undef KERNEL
+#undef INET
+#undef NFS
+#undef DIAGNOSTIC
+#undef BOOTP_COMPAT
+
+#define _COMPILING_BSD_KERNEL_
+#define KERNEL
+#define INET
+#define NFS
+#define DIAGNOSTIC
+#define BOOTP_COMPAT
+#endif
+
+/*
* Values that may be obtained by BOOTP
*/
extern struct in_addr rtems_bsdnet_bootp_server_address;