network: introduce link_request_to_create_stacked_netdev()

This will be used in later commits.
This commit is contained in:
Yu Watanabe
2021-06-08 06:33:27 +09:00
parent d24bf1b514
commit 71a754f70f
6 changed files with 158 additions and 0 deletions
+3
View File
@@ -11,6 +11,7 @@ typedef struct AddressLabel AddressLabel;
typedef struct BridgeFDB BridgeFDB;
typedef struct BridgeMDB BridgeMDB;
typedef struct Neighbor Neighbor;
typedef struct NetDev NetDev;
typedef struct NextHop NextHop;
typedef struct Route Route;
typedef struct RoutingPolicyRule RoutingPolicyRule;
@@ -25,6 +26,7 @@ typedef enum RequestType {
REQUEST_TYPE_ADDRESS_LABEL,
REQUEST_TYPE_BRIDGE_FDB,
REQUEST_TYPE_BRIDGE_MDB,
REQUEST_TYPE_CREATE_STACKED_NETDEV,
REQUEST_TYPE_DHCP_SERVER,
REQUEST_TYPE_IPV6_PROXY_NDP,
REQUEST_TYPE_NEIGHBOR,
@@ -53,6 +55,7 @@ typedef struct Request {
Route *route;
RoutingPolicyRule *rule;
SetLinkOperation set_link_operation;
NetDev *netdev;
void *object;
};
void *userdata;