path: root/doc/networking
diff options
authorJoel Sherrill <>1999-04-19 14:58:16 +0000
committerJoel Sherrill <>1999-04-19 14:58:16 +0000
commit202d54ef279eff08fdcc13d61aab524bbce10013 (patch)
tree8ae0b0cf453f9cbbfd9063864936bf389519652d /doc/networking
parent540945346d9d54c65a83991814cf8a7ea9c93a89 (diff)
Comments from Eric Norum taken into account.
Diffstat (limited to 'doc/networking')
1 files changed, 14 insertions, 2 deletions
diff --git a/doc/networking/driver.t b/doc/networking/driver.t
index c6e62043a0..417e966705 100644
--- a/doc/networking/driver.t
+++ b/doc/networking/driver.t
@@ -113,7 +113,18 @@ The value returned is the value returned by the @code{rtems_event_receive}.
@section Network Driver Makefile
Network drivers are considered part of the BSD network package and as such
-are to be compiled with the appropriate flags.
+are to be compiled with the appropriate flags. This can be accomplished by
+adding @code{-D__INSIDE_RTEMS_BSD_TCPIP_STACK__} to the @code{command line}.
+If the driver is inside the RTEMS source tree or is built using the
+RTEMS application Makefiles, then adding the following line accomplishes
+@end example
+This is equivalent to the following list of definitions. Early versions
+of the RTEMS BSD network stack required that all of these be defined.
@@ -134,12 +145,13 @@ of this. Because of this, network drivers should not include
of @code{malloc()}.
@b{Application level} code including network servers such as the FTP
-daemon are @b{not} part of the BSD network package and should not be
+daemon are @b{not} part of the BSD kernel network code and should not be
compiled with the BSD network flags. They should include
@code{<stdlib.h>} and not define the network stack visibility
@section Write the Driver Attach Function
The driver attach function is responsible for configuring the driver
and making the connection between the network stack
and the driver.