Commit 83719763 authored by Alessandro Rubini's avatar Alessandro Rubini

rvlan: force auth_vlan when going down, and forget peer

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 8bbf07be
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment