diff options
author | 2016-03-18 02:40:04 +0000 | |
---|---|---|
committer | 2016-03-18 02:40:04 +0000 | |
commit | 0ea5d2f31d814ea85ae72c613dc1187390d9dd57 (patch) | |
tree | dcb803babc47e21f2b51a484e70a444b2d55bf50 /usr.bin/tmux/server-client.c | |
parent | document short URIs (diff) | |
download | wireguard-openbsd-0ea5d2f31d814ea85ae72c613dc1187390d9dd57.tar.xz wireguard-openbsd-0ea5d2f31d814ea85ae72c613dc1187390d9dd57.zip |
refactor the vlan multicast list handling.
the previous code had vlan_ether_purgemulti and vlan_ether_resetmulti,
both of which did too many things. purgemulti would try and remove
the multicast entries from the parent, and then free the local
copies of the addresses. resetmulti would try to remove the address
from the parent, and then optionally try to add them to a new parent.
resetmulti in particular makes the overall vlan config steps fairly
twisty.
the refactor offers vlan_multi_apply, and vlan_multi_free. multi_apply
simply adds or removes the multicast addresses from a parent
interface. it is now up to the config steps to call them appropriately
when configuring a parent or a new parent. vlan_multi_free only
deletes the memory associated with the vlans multicast addresses.
vlan_multi_apply is called when a parent is configured (ie, ifconfig
vlan0 up), or unconfigured (ifconfig vlan0 down or a detach of the
parent). vlan_multi_free is called when a vlan interface is destroyed
(ifconfig vlan0 destroy).
ok mpi@
Diffstat (limited to 'usr.bin/tmux/server-client.c')
0 files changed, 0 insertions, 0 deletions