shell_commands: port ifconfig command for gnrc_netif2
This commit is contained in:
parent
7c1c6ac282
commit
558accbe1a
@ -26,6 +26,9 @@ endif
|
||||
ifneq (,$(filter gnrc_netif,$(USEMODULE)))
|
||||
SRC += sc_netif.c
|
||||
endif
|
||||
ifneq (,$(filter gnrc_netif2,$(USEMODULE)))
|
||||
SRC += sc_gnrc_netif2.c
|
||||
endif
|
||||
ifneq (,$(filter fib,$(USEMODULE)))
|
||||
SRC += sc_fib.c
|
||||
endif
|
||||
|
||||
1140
sys/shell/commands/sc_gnrc_netif2.c
Normal file
1140
sys/shell/commands/sc_gnrc_netif2.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -93,6 +93,13 @@ extern int _netif_config(int argc, char **argv);
|
||||
extern int _netif_send(int argc, char **argv);
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_GNRC_NETIF2
|
||||
extern int _gnrc_netif2_config(int argc, char **argv);
|
||||
#ifdef MODULE_GNRC_TXTSND
|
||||
extern int _gnrc_netif2_send(int argc, char **argv);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_FIB
|
||||
extern int _fib_route_handler(int argc, char **argv);
|
||||
#endif
|
||||
@ -189,12 +196,18 @@ const shell_command_t _shell_command_list[] = {
|
||||
#ifdef MODULE_GNRC_IPV6_NIB
|
||||
{"nib", "Configure neighbor information base", _gnrc_ipv6_nib},
|
||||
#endif
|
||||
#ifdef MODULE_GNRC_NETIF
|
||||
#if defined(MODULE_GNRC_NETIF) && !defined(MODULE_GNRC_NETIF2)
|
||||
{"ifconfig", "Configure network interfaces", _netif_config},
|
||||
#ifdef MODULE_GNRC_TXTSND
|
||||
{"txtsnd", "Sends a custom string as is over the link layer", _netif_send },
|
||||
#endif
|
||||
#endif
|
||||
#ifdef MODULE_GNRC_NETIF2
|
||||
{"ifconfig", "Configure network interfaces", _gnrc_netif2_config},
|
||||
#ifdef MODULE_GNRC_TXTSND
|
||||
{"txtsnd", "Sends a custom string as is over the link layer", _gnrc_netif2_send },
|
||||
#endif
|
||||
#endif
|
||||
#ifdef MODULE_FIB
|
||||
{"fibroute", "Manipulate the FIB (info: 'fibroute [add|del]')", _fib_route_handler},
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user