Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
White Rabbit Switch - Software
Commits
83719763
Commit
83719763
authored
Oct 14, 2020
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rvlan: force auth_vlan when going down, and forget peer
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8bbf07be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
radiusvlan.c
userspace/tools/radiusvlan.c
+5
-1
No files found.
userspace/tools/radiusvlan.c
View file @
83719763
...
...
@@ -362,10 +362,14 @@ int rvlan_fsm(struct rvlan_dev *dev, fd_set *rdset)
if
(
dev
->
poll_fd
>=
0
)
close
(
dev
->
poll_fd
);
dev
->
poll_fd
=
-
1
;
dev
->
peer_mac
[
0
]
=
'\0'
;
dev
->
chosen_vlan
=
rvlan_auth_vlan
;
if
(
rvlan_change_vlan
(
dev
)
<
0
)
return
-
1
;
dev
->
fsm_state
=
RVLAN_DOWN
;
if
(
!
dev
->
pid
)
break
;
/* but if we kill our child we must
wait
reap it */
/* but if we kill our child we must reap it */
kill
(
dev
->
pid
,
SIGINT
);
dev
->
fsm_state
=
RVLAN_WAIT
;
/* fall through */
...
...
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