2 * ustp - OpenWrt STP/RSTP/MSTP daemon
3 * Copyright (C) 2021 Felix Fietkau <nbd@nbd.name>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
19 enum worker_event_type
{
21 WORKER_EV_RECV_PACKET
,
22 WORKER_EV_BRIDGE_EVENT
,
24 WORKER_EV_BRIDGE_REMOVE
,
29 enum worker_event_type type
;
32 CIST_BridgeConfig bridge_config
;
35 int worker_init(void);
36 void worker_cleanup(void);
37 void worker_queue_event(struct worker_event
*ev
);