Kconfig 4.9 KB
Newer Older
B
bernard 已提交
1 2
menu "Network stack"

B
Bernard Xiong 已提交
3
menu "light weight TCP/IP stack"
B
bernard 已提交
4
config RT_USING_LWIP
B
bernard 已提交
5 6 7 8
    bool "Enable lwIP stack"
    default n

    if RT_USING_LWIP
9
        choice
B
bernard 已提交
10 11
            prompt "lwIP version"
            default RT_USING_LWIP141
12
            help
B
bernard 已提交
13 14 15 16 17 18 19 20 21
                Select the lwIP version

            config RT_USING_LWIP141
                bool "lwIP v1.4.1"

            config RT_USING_LWIP202
                bool "lwIP v2.0.2"
        endchoice

22 23 24 25 26 27
        if RT_USING_LWIP202
            config RT_USING_LWIP_IPV6
                bool "IPV6 protocol"
                default n
        endif

B
bernard 已提交
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
        config RT_LWIP_IGMP
            bool "IGMP protocol"
            default n

        config RT_LWIP_ICMP
            bool "ICMP protocol"
            default y

        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_DHCP
            bool "Enable alloc ip address through DHCP"
            select RT_LWIP_UDP
            default y

            if RT_LWIP_DHCP
                config IP_SOF_BROADCAST
                    int "SOF broadcast"
                    default 1
54

B
bernard 已提交
55 56 57 58 59
                config IP_SOF_BROADCAST_RECV
                    int "SOF broadcast recv"
                    default 1
            endif

60
        menu "Static IPv4 Address"
B
bernard 已提交
61 62 63 64 65 66 67
                config RT_LWIP_IPADDR
                    string "IPv4: IP address"
                    default 192.168.1.30

                config RT_LWIP_GWADDR
                    string "IPv4: Gateway address"
                    default 192.168.1.1
68

B
bernard 已提交
69 70 71
                config RT_LWIP_MSKADDR
                    string "IPv4: Mask address"
                    default 255.255.255.0
72
        endmenu
B
bernard 已提交
73

B
bernard 已提交
74 75 76 77 78 79 80
        config RT_LWIP_UDP
            bool "UDP protocol"
            default y

        config RT_LWIP_TCP
            bool "TCP protocol"
            default y
81

82 83 84
        config RT_LWIP_RAW
            bool "RAW protocol"
            default n
B
bernard 已提交
85 86 87 88 89

        config RT_LWIP_PPP
            bool "PPP protocol"
            default n

B
Bernard Xiong 已提交
90 91 92 93 94 95 96 97 98 99
        if RT_LWIP_PPP
            config RT_LWIP_PPPOE
                bool "PPPoE protocol"
                default n
    
            config RT_LWIP_PPPOS
                bool "PPPoS protocol"
                default n
        endif
        
100 101 102
        config RT_MEMP_NUM_NETCONN
            int "the number of struct netconns"
            default 8
B
bernard 已提交
103 104 105 106 107 108 109 110 111 112 113

        config RT_LWIP_PBUF_NUM
            int "the number of PBUF"
            default 16

        config RT_LWIP_RAW_PCB_NUM
            int "the number of raw connection"
            default 4

        config RT_LWIP_UDP_PCB_NUM
            int "the number of UDP socket"
S
SummerGift 已提交
114
            default 8 if RT_USING_DFS_NFS
B
bernard 已提交
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
            default 4

        if RT_LWIP_TCP
        config RT_LWIP_TCP_PCB_NUM
            int "the number of TCP socket"
            default 4

        config RT_LWIP_TCP_SEG_NUM
            int "the number of TCP segment"
            default 40

        config RT_LWIP_TCP_SND_BUF
            int "the size of send buffer"
            default 8196

        config RT_LWIP_TCP_WND
            int "the size of TCP send window"
            default 8196
        endif

        config RT_LWIP_TCPTHREAD_PRIORITY
            int "the priority level value of lwIP thread"
            default 10

        config RT_LWIP_TCPTHREAD_MBOX_SIZE
            int "the number of mail in the lwIP thread mailbox"
            default 8

        config RT_LWIP_TCPTHREAD_STACKSIZE
            int "the stack size of lwIP thread"
            default 1024

        config RT_LWIP_ETHTHREAD_PRIORITY
            int "the priority level value of ethernet thread"
            default 12
150

B
bernard 已提交
151 152 153
        config RT_LWIP_ETHTHREAD_STACKSIZE
            int "the stack size of ethernet thread"
            default 1024
154

B
bernard 已提交
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
        config RT_LWIP_ETHTHREAD_MBOX_SIZE
            int "the number of mail in the ethernet thread mailbox"
            default 8

        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
B
bernard 已提交
183 184 185

endmenu

186
source "$RTT_DIR/components/net/freemodbus/Kconfig"
armink_ztl's avatar
armink_ztl 已提交
187

B
Bernard Xiong 已提交
188
if RT_USING_LWIP
B
Bernard Xiong 已提交
189 190 191 192 193

config LWIP_USING_DHCPD
    bool "Enable DHCP server"
    default n

194 195 196 197
config RT_USING_NETUTILS
    bool "Enable net utils"
    default n

198
endif
B
Bernard Xiong 已提交
199

B
bernard 已提交
200
endmenu