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"