mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
854e16feb3
That can be used with linux target on lwip to pass packets from lwip to linux host networking stack, e.g. routing the trafic to internet.
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
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
|
|
default n
|
|
|
|
if EXAMPLE_CONNECT_LWIP_TAPIF
|
|
config EXAMPLE_CONNECT_TAPIF_IP_ADDR
|
|
string "Static IP address"
|
|
default "192.168.5.100"
|
|
help
|
|
Set static IP address.
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_NETMASK
|
|
string "Static netmask address"
|
|
default "255.255.255.0"
|
|
help
|
|
Set static netmask address.
|
|
|
|
config EXAMPLE_CONNECT_TAPIF_GW
|
|
string "Static gateway address"
|
|
default "192.168.5.1"
|
|
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
|