2023-01-31 02:29:00 -05:00
|
|
|
menu "Example Connection Configuration"
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_LWIP_TAPIF
|
|
|
|
bool "connect using lwip to linux tap interface"
|
|
|
|
depends on IDF_TARGET_LINUX && ESP_NETIF_TCPIP_LWIP
|
2023-04-03 14:31:51 -04:00
|
|
|
default y
|
2023-01-31 02:29:00 -05:00
|
|
|
|
|
|
|
if EXAMPLE_CONNECT_LWIP_TAPIF
|
2022-10-03 11:28:01 -04:00
|
|
|
config EXAMPLE_CONNECT_IPV4
|
|
|
|
bool
|
|
|
|
depends on LWIP_IPV4
|
|
|
|
default y
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_IPV6
|
|
|
|
bool "Obtain IPv6 address"
|
|
|
|
depends on LWIP_IPV6
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Set to true to setup link local address and wait until it's valid
|
|
|
|
|
2023-04-03 14:31:51 -04:00
|
|
|
config EXAMPLE_CONNECT_WAIT_FOR_IP
|
|
|
|
bool "run DHCP and wait for IP"
|
|
|
|
default y
|
|
|
|
|
2023-01-31 02:29:00 -05:00
|
|
|
config EXAMPLE_CONNECT_TAPIF_IP_ADDR
|
|
|
|
string "Static IP address"
|
|
|
|
default "192.168.5.100"
|
2023-04-03 14:31:51 -04:00
|
|
|
depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
|
2023-01-31 02:29:00 -05:00
|
|
|
help
|
|
|
|
Set static IP address.
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_NETMASK
|
|
|
|
string "Static netmask address"
|
|
|
|
default "255.255.255.0"
|
2023-04-03 14:31:51 -04:00
|
|
|
depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
|
2023-01-31 02:29:00 -05:00
|
|
|
help
|
|
|
|
Set static netmask address.
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_GW
|
|
|
|
string "Static gateway address"
|
|
|
|
default "192.168.5.1"
|
2023-04-03 14:31:51 -04:00
|
|
|
depends on EXAMPLE_CONNECT_IPV4 && !EXAMPLE_CONNECT_WAIT_FOR_IP
|
2023-01-31 02:29:00 -05:00
|
|
|
help
|
|
|
|
Set static gateway address.
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_OUT_LOSS
|
|
|
|
int "Percentage of packets to be dropped on transmission"
|
|
|
|
default 0
|
|
|
|
range 0 100
|
|
|
|
help
|
|
|
|
Set non-zero number simulate packet loss when sending data.
|
|
|
|
Number represents probability between 0 and 100%
|
|
|
|
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_IN_LOSS
|
|
|
|
int "Percentage of packets to be dropped on reception"
|
|
|
|
default 0
|
|
|
|
range 0 100
|
|
|
|
help
|
|
|
|
Set non-zero number simulate packet loss when receiving data.
|
|
|
|
Number represents probability between 0 and 100%
|
|
|
|
endif
|
|
|
|
|
|
|
|
endmenu
|