summaryrefslogtreecommitdiff
path: root/components/net
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-06-06 18:18:44 +0800
committerbernard <[email protected]>2017-06-06 18:18:44 +0800
commitae6ca7bb02c89c755487b6dbd565d3d204c00b1f (patch)
tree352a8404c2b4b321acbba9571c833fcc04c63c9b /components/net
parentc1926d3af73bf05477e669553eb4426696c8b1b4 (diff)
KConfig cleanup.
Diffstat (limited to 'components/net')
-rw-r--r--components/net/KConfig218
1 files changed, 126 insertions, 92 deletions
diff --git a/components/net/KConfig b/components/net/KConfig
index 0f2b2d794d..0154d0e7f1 100644
--- a/components/net/KConfig
+++ b/components/net/KConfig
@@ -2,126 +2,160 @@ menu "Network stack"
menu "light weight TCP/IP stack"
config RT_USING_LWIP
- bool "Enable lwIP stack"
- default n
+ bool "Enable lwIP stack"
+ default n
- if RT_USING_LWIP
- choice
- prompt "lwIP version"
- default RT_USING_LWIP141
- help
- Select the lwIP version
+ if RT_USING_LWIP
+ choice
+ prompt "lwIP version"
+ default RT_USING_LWIP141
+ help
+ Select the lwIP version
- config RT_USING_LWIP141
- bool "lwIP v1.4.1"
+ config RT_USING_LWIP141
+ bool "lwIP v1.4.1"
- config RT_USING_LWIP200
- bool "lwIP v2.0.0"
+ config RT_USING_LWIP200
+ bool "lwIP v2.0.0"
- config RT_USING_LWIP202
- bool "lwIP v2.0.2"
- endchoice
+ config RT_USING_LWIP202
+ bool "lwIP v2.0.2"
+ endchoice
- config RT_LWIP_IGMP
- bool "IGMP protocol"
- default n
+ config RT_LWIP_IGMP
+ bool "IGMP protocol"
+ default n
- config RT_LWIP_ICMP
- bool "ICMP protocol"
- default y
+ config RT_LWIP_ICMP
+ bool "ICMP protocol"
+ default y
- config RT_LWIP_SNMP
- bool "SNMP protocol"
- default n
+ config RT_LWIP_SNMP
+ bool "SNMP protocol"
+ default n
- config RT_LWIP_DNS
- bool "Enble DNS for name resolution"
- select RT_LWIP_UDP
- default y
+ config RT_LWIP_DNS
+ bool "Enble DNS for name resolution"
+ select RT_LWIP_UDP
+ default y
- config RT_LWIP_DHCP
- bool "Enable alloc ip address through DHCP"
- select RT_LWIP_UDP
- default y
+ config RT_LWIP_DHCP
+ bool "Enable alloc ip address through DHCP"
+ select RT_LWIP_UDP
+ default y
- config RT_LWIP_UDP
- bool "UDP protocol"
- default y
+ if RT_LWIP_DHCP
+ config IP_SOF_BROADCAST
+ int "SOF broadcast"
+ default 1
+
+ config IP_SOF_BROADCAST_RECV
+ int "SOF broadcast recv"
+ default 1
- config RT_LWIP_TCP
- bool "TCP protocol"
- default y
+ config LWIP_USING_DHCPD
+ bool "Enable DHCP server"
+ default y
+ endif
- config RT_LWIP_PPP
- bool "PPP protocol"
- default n
+ config RT_LWIP_UDP
+ bool "UDP protocol"
+ default y
- config RT_LWIP_PPPOE
- bool "PPPoE protocol"
- default n
+ config RT_LWIP_TCP
+ bool "TCP protocol"
+ default y
- config RT_LWIP_PPPOS
- bool "PPPoS protocol"
- default n
+ config RT_LWIP_PPP
+ bool "PPP protocol"
+ default n
- config RT_LWIP_RAW_PCB_NUM
- int "the number of raw connection"
- default 4
+ config RT_LWIP_PPPOE
+ bool "PPPoE protocol"
+ default n
- config RT_LWIP_UDP_PCB_NUM
- int "the number of UDP socket"
- default 4
+ config RT_LWIP_PPPOS
+ bool "PPPoS protocol"
+ default n
- if RT_LWIP_TCP
- config RT_LWIP_TCP_PCB_NUM
- int "the number of TCP socket"
- default 4
+ config RT_LWIP_PBUF_NUM
+ int "the number of PBUF"
+ default 16
- config RT_LWIP_TCP_SEG_NUM
- int "the number of TCP segment"
- default 4
+ config RT_LWIP_RAW_PCB_NUM
+ int "the number of raw connection"
+ default 4
- config RT_LWIP_TCP_SND_BUF
- int "the size of send buffer"
- default 8196
+ config RT_LWIP_UDP_PCB_NUM
+ int "the number of UDP socket"
+ default 4
- config RT_LWIP_TCP_WND
- int "the size of TCP send window"
- default 8196
- endif
+ if RT_LWIP_TCP
+ config RT_LWIP_TCP_PCB_NUM
+ int "the number of TCP socket"
+ default 4
- config RT_LWIP_TCPTHREAD_PRIORITY
- int "the priority level value of lwIP thread"
- default 10
+ config RT_LWIP_TCP_SEG_NUM
+ int "the number of TCP segment"
+ default 40
- config RT_LWIP_TCPTHREAD_MBOX_SIZE
- int "the number of mail in the lwIP thread mailbox"
- default 8
+ config RT_LWIP_TCP_SND_BUF
+ int "the size of send buffer"
+ default 8196
- config RT_LWIP_TCPTHREAD_STACKSIZE
- int "the stack size of lwIP thread"
- default 1024
+ config RT_LWIP_TCP_WND
+ int "the size of TCP send window"
+ default 8196
+ endif
- config RT_LWIP_REASSEMBLY_FRAG
- bool "Enable IP reassembly and frag"
- default n
+ config RT_LWIP_TCPTHREAD_PRIORITY
+ int "the priority level value of lwIP thread"
+ default 10
- config SO_REUSE
- bool "Enable SO_REUSEADDR option"
- default n
+ config RT_LWIP_TCPTHREAD_MBOX_SIZE
+ int "the number of mail in the lwIP thread mailbox"
+ default 8
- config LWIP_SO_RCVTIMEO
- bool "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
- default n
+ config RT_LWIP_TCPTHREAD_STACKSIZE
+ int "the stack size of lwIP thread"
+ default 1024
- config LWIP_SO_SNDTIMEO
- bool "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
- default n
+ config RT_LWIP_ETHTHREAD_PRIORITY
+ int "the priority level value of ethernet thread"
+ default 12
+
+ config RT_LWIP_ETHTHREAD_STACKSIZE
+ int "the stack size of ethernet thread"
+ default 1024
+
+ config RT_LWIP_ETHTHREAD_MBOX_SIZE
+ int "the number of mail in the ethernet thread mailbox"
+ default 8
- config LWIP_SO_RCVBUF
- bool "Enable SO_RCVBUF processing"
- default n
- endif
+ config RT_LWIP_REASSEMBLY_FRAG
+ bool "Enable IP reassembly and frag"
+ default n
+
+ config LWIP_NETIF_STATUS_CALLBACK
+ int "netif status callback"
+ default 1
+
+ config SO_REUSE
+ int "Enable SO_REUSEADDR option"
+ default 1
+
+ config LWIP_SO_RCVTIMEO
+ int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
+ default 1
+
+ config LWIP_SO_SNDTIMEO
+ int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
+ default 1
+
+ config LWIP_SO_RCVBUF
+ int "Enable SO_RCVBUF processing"
+ default 1
+ endif
endmenu