CONFIG_NET_LWIP_TCP_SEND_BUF=29200
# CONFIG_NET_LWIP_TCP_TIMESTAMPS is not set
# CONFIG_NET_LWIP_TCP_LISTEN_BACKLOG is not set
-CONFIG_NET_LWIP_ARP=y
-CONFIG_NET_LWIP_ARP_TABLESIZE=10
-CONFIG_NET_LWIP_ARP_QUEUEING=y
-CONFIG_NET_LWIP_ARP_TRUST_IP_MAC=y
-CONFIG_NET_LWIP_ETH_PAD_SIZE=0
-# CONFIG_NET_LWIP_ARP_STATIC_ENTRIES is not set
+CONFIG_NET_ARP=y
+CONFIG_NET_ARP_TABLESIZE=10
+CONFIG_NET_ARP_QUEUEING=y
+CONFIG_NET_ARP_TRUST_IP_MAC=y
+CONFIG_NET_ETH_PAD_SIZE=0
+# CONFIG_NET_ARP_STATIC_ENTRIES is not set
#
# IP options
CONFIG_NET_LWIP_TCP_SEND_BUF=29200
# CONFIG_NET_LWIP_TCP_TIMESTAMPS is not set
# CONFIG_NET_LWIP_TCP_LISTEN_BACKLOG is not set
-CONFIG_NET_LWIP_ARP=y
-CONFIG_NET_LWIP_ARP_TABLESIZE=10
-CONFIG_NET_LWIP_ARP_QUEUEING=y
-CONFIG_NET_LWIP_ARP_TRUST_IP_MAC=y
-CONFIG_NET_LWIP_ETH_PAD_SIZE=0
-# CONFIG_NET_LWIP_ARP_STATIC_ENTRIES is not set
+CONFIG_NET_ARP=y
+CONFIG_NET_ARP_TABLESIZE=10
+CONFIG_NET_ARP_QUEUEING=y
+CONFIG_NET_ARP_TRUST_IP_MAC=y
+CONFIG_NET_ETH_PAD_SIZE=0
+# CONFIG_NET_ARP_STATIC_ENTRIES is not set
#
# IP options
#define SYS_LIGHTWEIGHT_PROT 1
/* ---------- ARP options ---------- */
-#ifdef CONFIG_NET_LWIP_ARP
+#ifdef CONFIG_NET_ARP
#define LWIP_ARP 1
#else
#define LWIP_ARP 0
#endif
-#if defined(CONFIG_NET_LWIP_ARP)
-#if !defined(CONFIG_NET_LWIP_ARP_TABLESIZE)
+#if defined(CONFIG_NET_ARP)
+#if !defined(CONFIG_NET_ARP_TABLESIZE)
#error "Please define LWIP ARP Table size"
#else
-#define ARP_TABLE_SIZE CONFIG_NET_LWIP_ARP_TABLESIZE
+#define ARP_TABLE_SIZE CONFIG_NET_ARP_TABLESIZE
#endif
#endif
-#ifdef CONFIG_NET_LWIP_ARP_QUEUEING
+#ifdef CONFIG_NET_ARP_QUEUEING
#define ARP_QUEUEING 1
#else
#define ARP_QUEUEING 0
#endif
-#ifdef CONFIG_NET_LWIP_ARP_TRUST_IP_MAC
+#ifdef CONFIG_NET_ARP_TRUST_IP_MAC
#define ETHARP_TRUST_IP_MAC 1
#else
#define ETHARP_TRUST_IP_MAC 0
#endif
-#ifdef CONFIG_NET_LWIP_ETH_PAD_SIZE
-#define ETH_PAD_SIZE CONFIG_NET_LWIP_ETH_PAD_SIZE
+#ifdef CONFIG_NET_ETH_PAD_SIZE
+#define ETH_PAD_SIZE CONFIG_NET_ETH_PAD_SIZE
#endif
-#ifdef CONFIG_NET_LWIP_ARP_STATIC_ENTRIES
+#ifdef CONFIG_NET_ARP_STATIC_ENTRIES
#define ETHARP_SUPPORT_STATIC_ENTRIES 1
#endif
/* ---------- ARP options ---------- */
default n
config NET
- bool "System Networking support"
+ bool "Networking support"
default n
select ARCH_HAVE_NET
---help---
endchoice
if NET_LWIP
-source net/lwip/Kconfig
+source net/lwip/configs/Kconfig
endif #NET_LWIP
config NSOCKET_DESCRIPTORS
endif #NET_LWIP_TCP
-menuconfig NET_LWIP_ARP
- bool "Address Resolution Protocol"
- default y
-
-
-if NET_LWIP_ARP
-
-config NET_LWIP_ARP_TABLESIZE
- int "ARP table size"
- default 10
- ---help---
- Number of active MAC-IP address pairs cached.
-
-config NET_LWIP_ARP_QUEUEING
- bool "Arp Queueing"
- default n
- ---help---
- Multiple outgoing packets are queued during hardware address
- resolution. If disabled, only the most recent packet is queued per IP address.
- This is sufficient for most protocols and mainly reduces TCP connection
- startup time. Set this to 1 if you know your application sends more than one
- packet in a row to an IP address that is not in the ARP cache.
-
-config NET_LWIP_ARP_TRUST_IP_MAC
- bool "Trust IP MAC"
- default n
- ---help---
- Incoming IP packets cause the ARP table to be updated with the source
- MAC and IP addresses supplied in the packet. You may want to disable
- this if you do not trust LAN peers to have the correct addresses, or
- as a limited approach to attempt to handle spoofing. If disabled,
- lwIP will need to make a new ARP request if the peer is not already
- in the ARP table, adding a little latency.
- The peer *is* in the ARP table if it requested our address before.
- Also notice that this slows down input processing of every IP packet!
-
-config NET_LWIP_ETH_PAD_SIZE
- int "Number of ethernet padding bytes"
- default 0
- ---help---
- Number of bytes added before the ethernet header to ensure
- alignment of payload after that header. Since the header is 14 bytes long,
- without this padding e.g. addresses in the IP header will not be aligned
- on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.
-
-config NET_LWIP_ARP_STATIC_ENTRIES
- bool "Support ARP static entries"
- default n
- ---help---
- Enable code to support static ARP table
- entries (using etharp_add_static_entry/etharp_remove_static_entry).
-
-endif #NET_LWIP_ARP
+source "net/lwip/configs/arp/Kconfig"
menu "IP options"
--- /dev/null
+#
+# For a description of the syntax of this configuration file,
+# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
+#
+
+menu "ARP Configuration"
+
+config NET_ARP
+ bool "ARP enable"
+ default y
+ depends on NET_ETHERNET && NET_IPv4
+ ---help---
+ This setting is currently overridden by logic in include/nuttx/net
+
+if NET_ARP
+
+config NET_ARP_TABLE_SIZE
+ int "ARP table size"
+ default 10
+ ---help---
+ Number of active MAC-IP address pairs cached
+
+config NET_ARP_QUEUEING
+ bool "ARP queueing"
+ default y
+ ---help---
+ Multiple outgoing packets are queued during hardware address resolution.
+
+config NET_ETHARP_TRUST_IP_MAC
+ bool "ARP trust IP mac"
+ default y
+ ---help---
+ Incoming IP packets cause the ARP table to be updated with
+ the source MAC and IP addresses supplied in the packet.
+
+config NET_ETH_PAD_SIZE
+ int "Number of ethernet padding bytes"
+ default 0
+ ---help---
+ Number of bytes added before the ethernet header to ensure
+ alignment of payload after that header. Since the header is 14 bytes long,
+ without this padding e.g. addresses in the IP header will not be aligned
+ on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.
+
+config NET_ARP_STATIC_ENTRIES
+ bool "Support ARP static entries"
+ default n
+ ---help---
+ Enable code to support static ARP table
+ entries (using etharp_add_static_entry/etharp_remove_static_entry).
+
+endif # NET_ARP
+
+endmenu # ARP Configuration