ip6: enable ip6_autoconfig_enabled by default

See bug #56135

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Gao Qingshui 2019-04-14 12:26:08 +02:00 committed by Simon Goldschmidt
parent 3034e9fad0
commit a9ac18aebb
4 changed files with 2 additions and 7 deletions

View File

@ -371,9 +371,6 @@ test_netif_init(void)
#endif
#if LWIP_IPV6
netif_create_ip6_linklocal_address(netif_default, 1);
#if LWIP_IPV6_AUTOCONFIG
netif_default->ip6_autoconfig_enabled = 1;
#endif
printf("ip6 linklocal address: %s\n", ip6addr_ntoa(netif_ip6_addr(netif_default, 0)));
#endif /* LWIP_IPV6 */
#if LWIP_NETIF_STATUS_CALLBACK

View File

@ -73,7 +73,6 @@ main(void)
netif.name[0] = 'e';
netif.name[1] = '0';
netif_create_ip6_linklocal_address(&netif, 1);
netif.ip6_autoconfig_enabled = 1;
netif_set_status_callback(&netif, netif_status_callback);
netif_set_default(&netif);
netif_set_up(&netif);

View File

@ -342,8 +342,8 @@ netif_add(struct netif *netif,
#endif /* LWIP_NUM_NETIF_CLIENT_DATA */
#if LWIP_IPV6
#if LWIP_IPV6_AUTOCONFIG
/* IPv6 address autoconfiguration not enabled by default */
netif->ip6_autoconfig_enabled = 0;
/* IPv6 address autoconfiguration should be enabled by default */
netif->ip6_autoconfig_enabled = 1;
#endif /* LWIP_IPV6_AUTOCONFIG */
nd6_restart_netif(netif);
#endif /* LWIP_IPV6 */

View File

@ -84,7 +84,6 @@ static err_t testif_init(struct netif *netif)
#if LWIP_IPV6
netif->output_ip6 = ethip6_output;
netif->ip6_autoconfig_enabled = 1;
netif_create_ip6_linklocal_address(netif, 1);
netif->flags |= NETIF_FLAG_MLD6;
#endif