Skip to content
Snippets Groups Projects
Commit 558accbe authored by Martine Lenders's avatar Martine Lenders
Browse files

shell_commands: port ifconfig command for gnrc_netif2

parent 7c1c6ac2
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,9 @@ endif ...@@ -26,6 +26,9 @@ endif
ifneq (,$(filter gnrc_netif,$(USEMODULE))) ifneq (,$(filter gnrc_netif,$(USEMODULE)))
SRC += sc_netif.c SRC += sc_netif.c
endif endif
ifneq (,$(filter gnrc_netif2,$(USEMODULE)))
SRC += sc_gnrc_netif2.c
endif
ifneq (,$(filter fib,$(USEMODULE))) ifneq (,$(filter fib,$(USEMODULE)))
SRC += sc_fib.c SRC += sc_fib.c
endif endif
......
This diff is collapsed.
...@@ -93,6 +93,13 @@ extern int _netif_config(int argc, char **argv); ...@@ -93,6 +93,13 @@ extern int _netif_config(int argc, char **argv);
extern int _netif_send(int argc, char **argv); extern int _netif_send(int argc, char **argv);
#endif #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 #ifdef MODULE_FIB
extern int _fib_route_handler(int argc, char **argv); extern int _fib_route_handler(int argc, char **argv);
#endif #endif
...@@ -189,12 +196,18 @@ const shell_command_t _shell_command_list[] = { ...@@ -189,12 +196,18 @@ const shell_command_t _shell_command_list[] = {
#ifdef MODULE_GNRC_IPV6_NIB #ifdef MODULE_GNRC_IPV6_NIB
{"nib", "Configure neighbor information base", _gnrc_ipv6_nib}, {"nib", "Configure neighbor information base", _gnrc_ipv6_nib},
#endif #endif
#ifdef MODULE_GNRC_NETIF #if defined(MODULE_GNRC_NETIF) && !defined(MODULE_GNRC_NETIF2)
{"ifconfig", "Configure network interfaces", _netif_config}, {"ifconfig", "Configure network interfaces", _netif_config},
#ifdef MODULE_GNRC_TXTSND #ifdef MODULE_GNRC_TXTSND
{"txtsnd", "Sends a custom string as is over the link layer", _netif_send }, {"txtsnd", "Sends a custom string as is over the link layer", _netif_send },
#endif #endif
#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 #ifdef MODULE_FIB
{"fibroute", "Manipulate the FIB (info: 'fibroute [add|del]')", _fib_route_handler}, {"fibroute", "Manipulate the FIB (info: 'fibroute [add|del]')", _fib_route_handler},
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment