network: use request queue to configure bridge MDB

This commit is contained in:
Yu Watanabe
2021-06-08 06:33:27 +09:00
parent ff9e07838d
commit 9a038aaced
5 changed files with 86 additions and 71 deletions
+3
View File
@@ -7,6 +7,7 @@
typedef struct Address Address;
typedef struct BridgeFDB BridgeFDB;
typedef struct BridgeMDB BridgeMDB;
typedef struct Neighbor Neighbor;
typedef struct NextHop NextHop;
typedef struct Route Route;
@@ -20,6 +21,7 @@ typedef void (*request_on_free_handler_t)(Request*);
typedef enum RequestType {
REQUEST_TYPE_ADDRESS,
REQUEST_TYPE_BRIDGE_FDB,
REQUEST_TYPE_BRIDGE_MDB,
REQUEST_TYPE_DHCP_SERVER,
REQUEST_TYPE_NEIGHBOR,
REQUEST_TYPE_NEXTHOP,
@@ -36,6 +38,7 @@ typedef struct Request {
union {
Address *address;
BridgeFDB *fdb;
BridgeMDB *mdb;
Neighbor *neighbor;
NextHop *nexthop;
Route *route;