wlan-ap-Telecominfraproject/feeds/ucentral
John Crispin 14778e1d2f ucentral-event: add VLAN reference counting to prevent race condition
When a station roams between bands on the same VLAN, the vlan_remove
event from the old band can arrive after the vlan_add event from the
new band, causing the VLAN to be incorrectly deleted whilst still in use.

Add reference counting that tracks how many interfaces are using each
VLAN ID. Only create VLAN devices on the first reference and only
remove them when the last reference is dropped.

On startup, initialise refcounts from current station state to handle
daemon restarts correctly.

Signed-off-by: John Crispin <john@phrozen.org>
2025-10-01 16:19:01 +02:00
..
atfpolicy
bridger
ieee8021x
libwebsockets
modemmanager
poe
qosify
radius-gw-proxy
ratelimit
rrmd
rtty
spotfilter
switch-fabric
ucentral-client
ucentral-dataplane
ucentral-event
ucentral-schema
ucentral-state
ucentral-tools
ucrun
udevmand
udevstats
udhcpinject
udhcprelay
udhcpsnoop
udnssnoop
ufp
unetd
uspot
usteer
ustp