common_connect: add support for getting multiple IPv6 addresses

* Original commit: espressif/esp-idf@63aa0d6e9c
This commit is contained in:
David Cermak
2020-02-07 09:19:55 +01:00
committed by suren-gabrielyan-espressif
parent 9d9aac1569
commit e24cc7d1ae
2 changed files with 64 additions and 7 deletions

View File

@ -175,9 +175,44 @@ menu "Example Connection Configuration"
endif
config EXAMPLE_CONNECT_IPV6
bool "Obtain IPv6 link-local address"
bool "Obtain IPv6 address"
default y
help
By default, examples will wait until IPv4 and IPv6 addresses are obtained.
By default, examples will wait until IPv4 and IPv6 local link addresses are obtained.
Disable this option if the network does not support IPv6.
Choose the preferred IPv6 address type if the connection code should wait until other than
the local link address gets assigned.
if EXAMPLE_CONNECT_IPV6
choice EXAMPLE_CONNECT_PREFERRED_IPV6
prompt "Preferred IPv6 Type"
default EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
help
Select which kind of IPv6 address the connect logic waits for.
config EXAMPLE_CONNECT_IPV6_PREF_LOCAL_LINK
bool "Local Link Address"
help
Blocks until Local link address assigned.
config EXAMPLE_CONNECT_IPV6_PREF_GLOBAL
bool "Global Address"
help
Blocks until Global address assigned.
config EXAMPLE_CONNECT_IPV6_PREF_SITE_LOCAL
bool "Site Local Address"
help
Blocks until Site link address assigned.
config EXAMPLE_CONNECT_IPV6_PREF_UNIQUE_LOCAL
bool "Unique Local Link Address"
help
Blocks until Unique local address assigned.
endchoice
endif
endmenu