You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/console_cmd_ifconfig/console_ifconfig.c
+31-17Lines changed: 31 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@
16
16
#include"argtable3/argtable3.h"
17
17
#include"esp_log.h"
18
18
#include"esp_netif_net_stack.h"
19
+
#ifCONFIG_LWIP_IPV6
19
20
#include"lwip/ip6.h"
21
+
#endif
20
22
#include"lwip/opt.h"
21
23
#include"ethernet_init.h"
22
24
#include"console_ifconfig.h"
@@ -65,7 +67,9 @@ netif_op_t cmd_list[] = {
65
67
{.name="ifconfig", .operation=ifcfg_print_op, .arg_cnt=1, .start_index=0, .netif_flag= false, .help="ifconfig: Display a list of all esp_netif interfaces along with their information"},
66
68
{.name="ifconfig", .operation=ifcfg_print_op, .arg_cnt=2, .start_index=0, .netif_flag= true, .help="ifconfig <iface>: Provide the details of the named interface"},
67
69
{.name="default", .operation=ifcfg_basic_op, .arg_cnt=3, .start_index=2, .netif_flag= true, .help="ifconfig <iface> default: Set the specified interface as the default interface"},
70
+
#ifCONFIG_LWIP_IPV6
68
71
{.name="ip6", .operation=ifcfg_basic_op, .arg_cnt=3, .start_index=2, .netif_flag= true, .help="ifconfig <iface> ip6: Enable IPv6 on the specified interface"},
{.name="link", .operation=ifcfg_lwip_op, .arg_cnt=4, .start_index=2, .netif_flag= true, .help="ifconfig <iface> link <up/down>: Enable or disable the link of the specified interface"},
0 commit comments