summaryrefslogtreecommitdiffstats
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/network_servers.rst10
-rw-r--r--networking/networking_driver.rst4
-rw-r--r--networking/using_networking_rtems_app.rst6
3 files changed, 13 insertions, 7 deletions
diff --git a/networking/network_servers.rst b/networking/network_servers.rst
index dcf2739..941a6e2 100644
--- a/networking/network_servers.rst
+++ b/networking/network_servers.rst
@@ -60,7 +60,13 @@ Example hooks structure and configuration structure folllow.
40, /* FTPD task priority */
512*1024, /* Maximum hook 'file' size */
0, /* Use default port */
- ftp_hooks /* Local ftp hooks */
+ ftp_hooks, /* Local ftp hooks */
+ 0, /* Use / as root */
+ 1, /* Max. connections */
+ 0, /* Infinite idle timeout */
+ 0, /* Read-write access */
+ 0, /* Ignore login check */
+ true /* Say hello */
};
Specifying 0 for the well-known port causes FTPD to use the UNIX standard FTPD
@@ -75,7 +81,7 @@ The prototype for the ``untar`` hook (and hooks, in general) is:
.. code-block:: c
- int Untar_FromMemory(unsigned char *tar_buf, unsigned long size);
+ int Untar_FromMemory(void *tar_buf, size_t size);
An example FTP transcript which exercises this hook is:
diff --git a/networking/networking_driver.rst b/networking/networking_driver.rst
index e7a7017..c161c2b 100644
--- a/networking/networking_driver.rst
+++ b/networking/networking_driver.rst
@@ -99,14 +99,14 @@ to be compiled with the appropriate flags. This can be accomplished by adding
is inside the RTEMS source tree or is built using the RTEMS application
Makefiles, then adding the following line accomplishes this:
-.. code-block:: c
+.. code-block:: makefile
DEFINES += -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
This is equivalent to the following list of definitions. Early versions of the
RTEMS BSD network stack required that all of these be defined.
-.. code-block:: c
+.. code-block:: makefile
-D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
-DDIAGNOSTIC -DBOOTP_COMPAT
diff --git a/networking/using_networking_rtems_app.rst b/networking/using_networking_rtems_app.rst
index 3d117dc..0d3e245 100644
--- a/networking/using_networking_rtems_app.rst
+++ b/networking/using_networking_rtems_app.rst
@@ -14,7 +14,7 @@ Including the required managers
The FreeBSD networking code requires several RTEMS managers in the application:
-.. code-block:: c
+.. code-block:: makefile
MANAGERS = io event semaphore
@@ -25,7 +25,7 @@ The networking tasks allocate a lot of memory. For most applications the heap
should be at least 256 kbytes. The amount of memory set aside for the heap can
be adjusted by setting the ``CFLAGS_LD`` definition as shown below:
-.. code-block:: c
+.. code-block:: makefile
CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0x80000
@@ -210,7 +210,7 @@ the first two entries in this structure.
.. code-block:: c
- 40 * (1024 + sizeof(struct sockaddr_in)
+ 40 * (1024 + sizeof(struct sockaddr_in))
``unsigned long tcp_tx_buf_size``
This configuration parameter specifies the maximum amount of buffer memory