2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-04-12 01:06:30 +02:00
|
|
|
|
2013-10-23 19:48:57 +02:00
|
|
|
config ARCH_HAVE_NET
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_HAVE_PHY
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2012-04-12 01:06:30 +02:00
|
|
|
config NET
|
|
|
|
bool "Networking support"
|
|
|
|
default n
|
2013-10-23 19:48:57 +02:00
|
|
|
select ARCH_HAVE_NET
|
2012-04-12 01:06:30 +02:00
|
|
|
---help---
|
|
|
|
Enable or disable all network features
|
|
|
|
|
|
|
|
if NET
|
|
|
|
|
|
|
|
config NET_NOINTS
|
|
|
|
bool "Not interrupt driven"
|
|
|
|
default n
|
|
|
|
---help---
|
2013-09-06 17:18:07 +02:00
|
|
|
NET_NOINT indicates that uIP is not called from the interrupt level.
|
2012-04-12 01:06:30 +02:00
|
|
|
If NET_NOINTS is defined, critical sections will be managed with semaphores;
|
|
|
|
Otherwise, it assumed that uIP will be called from interrupt level handling
|
|
|
|
and critical sections will be managed by enabling and disabling interrupts.
|
|
|
|
|
2014-11-16 18:15:21 +01:00
|
|
|
config NET_PROMISCUOUS
|
|
|
|
bool "Promiscuous mode"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Force the Ethernet driver to operate in promiscuous mode (if supported
|
|
|
|
by the Ethernet driver).
|
|
|
|
|
|
|
|
menu "Driver buffer configuration"
|
|
|
|
|
2012-04-12 01:06:30 +02:00
|
|
|
config NET_MULTIBUFFER
|
|
|
|
bool "Use multiple device-side I/O buffers"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Traditionally, uIP has used a single buffer for all incoming and
|
|
|
|
outgoing traffic. If this configuration is selected, then the
|
|
|
|
driver can manage multiple I/O buffers and can, for example,
|
|
|
|
be filling one input buffer while sending another output buffer.
|
|
|
|
Or, as another example, the driver may support queuing of concurrent
|
|
|
|
input/ouput and output transfers for better performance.
|
|
|
|
|
2014-11-16 16:22:38 +01:00
|
|
|
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
|
2012-04-12 01:06:30 +02:00
|
|
|
---help---
|
2014-01-17 20:24:44 +01:00
|
|
|
Packet buffer size. This size includes the TCP/UDP payload plus the
|
2014-11-16 16:22:38 +01:00
|
|
|
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).
|
2014-01-16 23:08:51 +01:00
|
|
|
|
|
|
|
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 =
|
2014-11-16 16:22:38 +01:00
|
|
|
590.
|
2014-01-16 23:08:51 +01:00
|
|
|
|
|
|
|
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
|
2012-04-12 01:06:30 +02:00
|
|
|
|
2014-11-16 18:15:21 +01:00
|
|
|
config NET_ETH_TCP_RECVWNDO
|
2014-11-16 18:27:53 +01:00
|
|
|
int "Ethernet TCP receive window size"
|
2014-11-16 18:15:21 +01:00
|
|
|
default 1220 if NET_IPv6
|
|
|
|
default 536 if !NET_IPv6
|
|
|
|
depends on NET_ETHERNET && NET_TCP
|
|
|
|
---help---
|
|
|
|
The size of the advertised receiver's window. Should be set low
|
|
|
|
(i.e., to the size of the MSS) if the application is slow to process
|
|
|
|
incoming data, or high (32768 bytes) if the application processes
|
|
|
|
data quickly.
|
|
|
|
|
2014-11-16 16:22:38 +01:00
|
|
|
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.
|
|
|
|
|
2014-11-16 18:15:21 +01:00
|
|
|
config NET_SLIP_TCP_RECVWNDO
|
2014-11-16 18:27:53 +01:00
|
|
|
int "SLIP TCP receive window size"
|
2014-11-16 18:15:21 +01:00
|
|
|
default 256
|
|
|
|
depends on NET_SLIP && NET_TCP
|
2014-06-25 19:01:08 +02:00
|
|
|
---help---
|
|
|
|
The size of the advertised receiver's window. Should be set low
|
|
|
|
(i.e., to the size of the MSS) if the application is slow to process
|
|
|
|
incoming data, or high (32768 bytes) if the application processes
|
|
|
|
data quickly.
|
|
|
|
|
2015-03-11 13:52:56 +01:00
|
|
|
config NET_TUN_MTU
|
|
|
|
int "TUN packet buffer size (MTU)"
|
|
|
|
default 296
|
|
|
|
depends on NET_TUN
|
|
|
|
range 296 1518
|
|
|
|
|
|
|
|
config NET_TUN_TCP_RECVWNDO
|
|
|
|
int "TUN TCP receive window size"
|
|
|
|
default 256
|
|
|
|
depends on NET_TUN && NET_TCP
|
|
|
|
|
2014-06-19 16:18:46 +02:00
|
|
|
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.
|
|
|
|
|
2014-11-16 18:27:53 +01:00
|
|
|
endmenu # Driver buffer configuration
|
2014-11-16 18:15:21 +01:00
|
|
|
|
2014-11-15 15:55:50 +01:00
|
|
|
menu "Data link support"
|
2014-11-15 15:22:51 +01:00
|
|
|
|
|
|
|
config NET_MULTILINK
|
|
|
|
bool
|
|
|
|
default n
|
2014-06-01 17:40:23 +02:00
|
|
|
|
2015-03-11 13:52:56 +01:00
|
|
|
config NET_USER_DEVFMT
|
|
|
|
bool "User provided devfmt"
|
|
|
|
default n
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
---help---
|
|
|
|
netdev_register will get devfmt form d_ifname if it is initialized.
|
|
|
|
|
2014-06-01 17:40:23 +02:00
|
|
|
config NET_ETHERNET
|
2014-11-15 15:55:50 +01:00
|
|
|
bool "Ethernet support"
|
2014-11-15 21:36:49 +01:00
|
|
|
default y if !NET_SLIP
|
|
|
|
default n if NET_SLIP
|
2014-11-15 01:25:33 +01:00
|
|
|
select NETDEV_MULTINIC if NET_SLIP
|
2014-11-15 15:22:51 +01:00
|
|
|
select NET_MULTILINK if NET_SLIP
|
2014-06-01 17:40:23 +02:00
|
|
|
---help---
|
|
|
|
If NET_SLIP is not selected, then Ethernet will be used (there is
|
|
|
|
no need to define anything special in the configuration file to use
|
|
|
|
Ethernet -- it is the default).
|
|
|
|
|
2012-04-12 01:06:30 +02:00
|
|
|
config NET_SLIP
|
|
|
|
bool "SLIP support"
|
|
|
|
default n
|
2014-11-15 01:25:33 +01:00
|
|
|
select NETDEV_MULTINIC if NET_ETHERNET
|
2014-11-15 15:22:51 +01:00
|
|
|
select NET_MULTILINK if NET_ETHERNET
|
2012-04-12 01:06:30 +02:00
|
|
|
---help---
|
|
|
|
Enables building of the SLIP driver. SLIP requires
|
|
|
|
at least one IP protocol selected and the following additional
|
|
|
|
network settings: NET_NOINTS and NET_MULTIBUFFER.
|
|
|
|
|
|
|
|
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.
|
|
|
|
The basic differences between the SLIP and Ethernet configurations is
|
2013-09-06 17:18:07 +02:00
|
|
|
that when SLIP is selected:
|
2014-01-16 23:08:51 +01:00
|
|
|
|
|
|
|
* The link level header (that comes before the IP header) is omitted.
|
|
|
|
* All MAC address processing is suppressed.
|
|
|
|
* ARP is disabled.
|
|
|
|
|
2012-04-12 01:06:30 +02:00
|
|
|
If NET_SLIP is not selected, then Ethernet will be used (there is
|
|
|
|
no need to define anything special in the configuration file to use
|
2013-09-06 17:18:07 +02:00
|
|
|
Ethernet -- it is the default).
|
2012-04-12 01:06:30 +02:00
|
|
|
|
|
|
|
if NET_SLIP
|
|
|
|
|
2013-09-06 17:18:07 +02:00
|
|
|
config SLIP_NINTERFACES
|
2012-04-12 01:06:30 +02:00
|
|
|
int "Number of SLIP interfaces"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
Selects the number of physical SLIP
|
2013-09-06 17:18:07 +02:00
|
|
|
interfaces to support.
|
2012-04-12 01:06:30 +02:00
|
|
|
Default: 1
|
|
|
|
|
|
|
|
config SLIP_STACKSIZE
|
|
|
|
int "SLIP stack size"
|
|
|
|
default 2048
|
|
|
|
---help---
|
|
|
|
Select the stack size of the SLIP RX and TX tasks. Default: 2048
|
|
|
|
|
|
|
|
config SLIP_DEFPRIO
|
|
|
|
int "SLIP priority"
|
|
|
|
default 128
|
|
|
|
---help---
|
|
|
|
The priority of the SLIP RX and TX tasks. Default: 128
|
|
|
|
|
2014-01-16 23:08:51 +01:00
|
|
|
endif # NET_SLIP
|
2015-03-11 13:52:56 +01:00
|
|
|
|
|
|
|
config NET_TUN
|
|
|
|
bool "TUN Virtual Network Device support"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if NET_TUN
|
|
|
|
|
|
|
|
config TUN_NINTERFACES
|
|
|
|
int "Number of TUN interfaces"
|
|
|
|
default 1
|
|
|
|
range 1 8
|
|
|
|
---help---
|
|
|
|
Selects the number of TUN
|
|
|
|
interfaces to support.
|
|
|
|
Default: 1
|
|
|
|
|
|
|
|
endif # NET_TUN
|
|
|
|
|
2014-11-15 15:55:50 +01:00
|
|
|
endmenu # Data link support
|
|
|
|
|
|
|
|
source "net/netdev/Kconfig"
|
2015-01-14 17:51:09 +01:00
|
|
|
|
2015-01-18 16:23:22 +01:00
|
|
|
menu "Internet Protocol Selection"
|
2015-01-14 17:51:09 +01:00
|
|
|
|
|
|
|
config NET_IPv4
|
2015-01-18 16:23:22 +01:00
|
|
|
bool "IPv4"
|
|
|
|
default y
|
2015-01-16 23:49:48 +01:00
|
|
|
---help---
|
|
|
|
Build in support for IPv4.
|
|
|
|
|
|
|
|
config NET_IPv6
|
|
|
|
bool "IPv6"
|
|
|
|
default n
|
|
|
|
---help---
|
2015-01-18 16:23:22 +01:00
|
|
|
Build in support for IPv6.
|
2015-01-14 17:51:09 +01:00
|
|
|
|
2015-01-16 23:49:48 +01:00
|
|
|
source "net/neighbor/Kconfig"
|
|
|
|
endmenu # Internet Protocol Selection
|
|
|
|
|
|
|
|
source "net/socket/Kconfig"
|
2014-11-15 15:55:50 +01:00
|
|
|
source "net/pkt/Kconfig"
|
2015-01-24 21:03:32 +01:00
|
|
|
source "net/local/Kconfig"
|
2014-11-15 15:55:50 +01:00
|
|
|
source "net/tcp/Kconfig"
|
|
|
|
source "net/udp/Kconfig"
|
|
|
|
source "net/icmp/Kconfig"
|
2015-01-14 21:26:50 +01:00
|
|
|
source "net/icmpv6/Kconfig"
|
2014-11-15 15:55:50 +01:00
|
|
|
source "net/igmp/Kconfig"
|
|
|
|
source "net/arp/Kconfig"
|
2015-08-24 18:08:26 +02:00
|
|
|
source "net/loopback/Kconfig"
|
2014-11-15 15:55:50 +01:00
|
|
|
source "net/iob/Kconfig"
|
|
|
|
source "net/utils/Kconfig"
|
|
|
|
|
|
|
|
config NET_STATISTICS
|
|
|
|
bool "Collect network statistics"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
uIP statistics on or off
|
|
|
|
|
|
|
|
source "net/route/Kconfig"
|
|
|
|
|
|
|
|
config NET_MULTICAST
|
|
|
|
bool "Multi-cast Tx support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Outgoing multi-cast address support
|
|
|
|
|
2015-07-03 15:50:27 +02:00
|
|
|
config NET_HOSTNAME
|
|
|
|
string "Host name for current machine"
|
|
|
|
default ""
|
|
|
|
---help---
|
|
|
|
A unique name to identify device on the network
|
|
|
|
|
2014-01-16 23:08:51 +01:00
|
|
|
endif # NET
|