File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
examples/common_components/protocol_examples_common Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ esp_err_t example_connect(void)
167
167
// iterate over active interfaces, and print out IPs of "our" netifs
168
168
esp_netif_t * netif = NULL ;
169
169
esp_netif_ip_info_t ip ;
170
- esp_ip6_addr_t ip6 [MAX_IP6_ADDRS_PER_NETIF ];
171
170
for (int i = 0 ; i < esp_netif_get_nr_of_ifs (); ++ i ) {
172
171
netif = esp_netif_next (netif );
173
172
if (is_our_netif (TAG , netif )) {
@@ -176,6 +175,7 @@ esp_err_t example_connect(void)
176
175
177
176
ESP_LOGI (TAG , "- IPv4 address: " IPSTR , IP2STR (& ip .ip ));
178
177
#ifdef CONFIG_EXAMPLE_CONNECT_IPV6
178
+ esp_ip6_addr_t ip6 [MAX_IP6_ADDRS_PER_NETIF ];
179
179
int ip6_addrs = esp_netif_get_all_ip6 (netif , ip6 );
180
180
for (int j = 0 ; j < ip6_addrs ; ++ j ) {
181
181
esp_ip6_addr_type_t ipv6_type = esp_netif_ip6_get_addr_type (& (ip6 [j ]));
You can’t perform that action at this time.
0 commit comments