Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
558accbe
Commit
558accbe
authored
7 years ago
by
Martine Lenders
Browse files
Options
Downloads
Patches
Plain Diff
shell_commands: port ifconfig command for gnrc_netif2
parent
7c1c6ac2
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sys/shell/commands/Makefile
+3
-0
3 additions, 0 deletions
sys/shell/commands/Makefile
sys/shell/commands/sc_gnrc_netif2.c
+1140
-0
1140 additions, 0 deletions
sys/shell/commands/sc_gnrc_netif2.c
sys/shell/commands/shell_commands.c
+14
-1
14 additions, 1 deletion
sys/shell/commands/shell_commands.c
with
1157 additions
and
1 deletion
sys/shell/commands/Makefile
+
3
−
0
View file @
558accbe
...
@@ -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.
Click to expand it.
sys/shell/commands/sc_gnrc_netif2.c
0 → 100644
+
1140
−
0
View file @
558accbe
This diff is collapsed.
Click to expand it.
sys/shell/commands/shell_commands.c
+
14
−
1
View file @
558accbe
...
@@ -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
def
ined(MODULE_GNRC_NETIF) && !defined(
MODULE_GNRC_NETIF
2)
{
"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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment