Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
4b67b59a
Commit
4b67b59a
authored
Oct 14, 2020
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bring back vlan support
parent
23d8e13a
Pipeline
#535
passed with stage
in 23 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
wrc.h
include/wrc.h
+6
-0
cmd_vlan.c
shell/cmd_vlan.c
+2
-2
shell.c
shell/shell.c
+2
-0
No files found.
include/wrc.h
View file @
4b67b59a
...
...
@@ -68,6 +68,12 @@
#define HAS_EB 0
#endif
#ifdef CONFIG_VLAN
#define HAS_VLANS 1
#else
#define HAS_VLANS 0
#endif
extern
int
wrc_vlan_number
;
int
wrc_mon_gui
(
void
);
...
...
shell/cmd_vlan.c
View file @
4b67b59a
...
...
@@ -25,10 +25,10 @@ static int cmd_vlan(const char *args[])
return
-
EINVAL
;
}
wrc_vlan_number
=
i
;
pfilter_init_default
(
);
ep_pfilter_init_default
(
&
wrc_endpoint_dev
);
}
else
if
(
!
strcasecmp
(
args
[
0
],
"off"
))
{
wrc_vlan_number
=
0
;
pfilter_init_default
(
);
ep_pfilter_init_default
(
&
wrc_endpoint_dev
);
}
else
{
return
-
EINVAL
;
...
...
shell/shell.c
View file @
4b67b59a
...
...
@@ -367,5 +367,7 @@ void shell_register_commands(void)
REGISTER_WRC_COMMAND
(
stat
);
if
(
HAS_IP
)
REGISTER_WRC_COMMAND
(
ip
);
if
(
HAS_VLANS
)
REGISTER_WRC_COMMAND
(
vlan
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment