diff options
Diffstat (limited to 'nuttx/net/Kconfig')
-rw-r--r-- | nuttx/net/Kconfig | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/nuttx/net/Kconfig b/nuttx/net/Kconfig index 526eb3722..53f2f93e6 100644 --- a/nuttx/net/Kconfig +++ b/nuttx/net/Kconfig @@ -47,25 +47,38 @@ config NET_PROMISCUOUS Force the Ethernet driver to operate in promiscuous mode (if supported by the Ethernet driver). -config NET_BUFSIZE - int "Network packet buffer size (MTU)" - default 1294 if !NET_SLIP && NET_IPv6 - default 590 if !NET_SLIP && !NET_IPv6 - default 296 if NET_SLIP && !NET_IPv6 +config NET_ETH_MTU + int "Ethernet packet buffer size (MTU)" + default 1294 if NET_IPv6 + default 590 if !NET_IPv6 + depends on NET_ETHERNET + range 590 1518 ---help--- Packet buffer size. This size includes the TCP/UDP payload plus the - size of TCP/UDP header, the IP header, and the Ethernet header - (assuming that the Ethernet transport is used). This value is - normally referred to as the MTU (Maximum Transmission Unit); the - payload is the MSS (Maximum Segment Size). + size of TCP/UDP header, the IP header, and the Ethernet header. + This value is normally referred to as the MTU (Maximum Transmission + Unit); the payload is the MSS (Maximum Segment Size). IPv4 hosts are required to be able to handle an MSS of at least 536 octets, resulting in a minimum buffer size of 536+20+20+14 = - 590 (For SLIP 256+20+20 = 296). + 590. 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_SLIP_MTU + int # "SLIP packet buffer size (MTU)" + default 296 + depends on NET_SLIP + range 296 1518 + ---help--- + Packet buffer size. This size includes the TCP/UDP payload plus the + size of TCP/UDP header and the IP header. This value is normally + referred to as the MTU (Maximum Transmission Unit); the payload + payload is the MSS (Maximum Segment Size). SLIP is required to + support at lest 256+20+20 = 296. Values other than 296 are not + recommended. + config NET_RECEIVE_WINDOW int "Receive window size" default 1220 if !NET_SLIP && NET_IPv6 @@ -115,10 +128,6 @@ config NET_SLIP at least one IP protocol selected and the following additional network settings: NET_NOINTS and NET_MULTIBUFFER. - NET_BUFSIZE *must* be set to 296. Other optional configuration - settings that affect the SLIP driver: NET_STATISTICS. - Default: Ethernet - SLIP supports point-to-point IP communications over a serial port. The default data link layer for uIP is Ethernet. If NET_SLIP is defined in the NuttX configuration file, then SLIP will be supported. |