summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-03-18 02:40:04 +0000
committerdlg <dlg@openbsd.org>2016-03-18 02:40:04 +0000
commit0ea5d2f31d814ea85ae72c613dc1187390d9dd57 (patch)
treedcb803babc47e21f2b51a484e70a444b2d55bf50 /usr.bin/tmux/server-client.c
parentdocument short URIs (diff)
downloadwireguard-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