diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-19 08:18:46 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-19 08:18:46 -0600 |
commit | c04481fc6a04c734a1ee4c6ae6fe292f77fa8842 (patch) | |
tree | ad7ae4f2559441a5fe9ec06685bbc2528ee4ae95 /nuttx/net | |
parent | b53ca83899df1e7284d836e2f71e6c0a204e5580 (diff) | |
download | px4-nuttx-c04481fc6a04c734a1ee4c6ae6fe292f77fa8842.tar.gz px4-nuttx-c04481fc6a04c734a1ee4c6ae6fe292f77fa8842.tar.bz2 px4-nuttx-c04481fc6a04c734a1ee4c6ae6fe292f77fa8842.zip |
Add missing CONFIG_NET_GUARDSIZE to Kconfig
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/net/Kconfig b/nuttx/net/Kconfig index 6e3cde5a3..f5a141922 100644 --- a/nuttx/net/Kconfig +++ b/nuttx/net/Kconfig @@ -102,6 +102,17 @@ config NET_BUFSIZE IPv6 hosts are required to be able to handle an MSS of 1220 octets, resulting in a minimum buffer size of of 1220+20+40+14 = 1294 +config NET_GUARDSIZE + int "Driver I/O guard size" + default 2 + ---help--- + Network drivers often receive packets with garbage at the end and + are longer than the size of packet in the TCP header. The following + "fudge" factor increases the size of the I/O buffering by a small + amount to allocate slightly oversize packets. After receipt, the + packet size will be chopped down to the size indicated in the TCP + header. + source "net/pkt/Kconfig" source "net/tcp/Kconfig" source "net/udp/Kconfig" |