summaryrefslogtreecommitdiff
path: root/apps/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-15 13:13:23 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-15 13:13:23 -0600
commit24a33a43436bcc8430c5c1e6707dedc8c2531171 (patch)
treebf837b9244093960c729978056c8097c198541a0 /apps/include
parentcf1c261a3dccb0f1ab7c98f1ad3900417b1d8262 (diff)
downloadnuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.tar.gz
nuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.tar.bz2
nuttx-24a33a43436bcc8430c5c1e6707dedc8c2531171.zip
Network: All logic will now handle varialbe length link layer protocol headers within incoming packets. This permits use of multiple network interfaces with differing data links. For example, ETHERNET + SLIP
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/netutils/httpd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/include/netutils/httpd.h b/apps/include/netutils/httpd.h
index d5a9b21c4..1ae9b7c1e 100644
--- a/apps/include/netutils/httpd.h
+++ b/apps/include/netutils/httpd.h
@@ -77,9 +77,14 @@
/* For efficiency reasons, the size of the IO buffer should be a multiple
* of the TCP MSS value. Also, the current design requires that the IO
* buffer be sufficiently large to contain the entire GET request.
+ *
+ * In the case where there are multiple network devices with different
+ * link layer protocols (CONFIG_NET_MULTILINK), each network device
+ * may support a different TCP MSS value. Here we arbitrarily select
+ * the minimum MSS for that case.
*/
-#define HTTPD_IOBUFFER_SIZE (3*TCP_MSS)
+#define HTTPD_IOBUFFER_SIZE (3*MIN_TCP_MSS)
/* This is the maximum size of a file path */