From 8266624d042d5fa38866d93eaa4d718768b2a987 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 19 Jun 2014 08:18:46 -0600 Subject: [PATCH] Add missing CONFIG_NET_GUARDSIZE to Kconfig --- net/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net/Kconfig b/net/Kconfig index 6e3cde5a311..f5a14192205 100644 --- a/net/Kconfig +++ b/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"