diff options
| author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-28 11:03:11 +0900 |
|---|---|---|
| committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-03-11 14:20:31 +0900 |
| commit | eb93dc9bde7447bb519d69c0e3bc077767936c93 (patch) | |
| tree | a21beb22e0493134e18a74c3ee86e490ff137613 /src/network/networkd-queue.h | |
| parent | a48ffe47cf1db98694d2013bf97f62f55e4c3d27 (diff) | |
| download | systemd-eb93dc9bde7447bb519d69c0e3bc077767936c93.tar.gz | |
network: merge RequestType and SetLinkOperation
These two enum indicate how we process the request. Hence, it is not
necessary to introduce two separated indicators.
Diffstat (limited to 'src/network/networkd-queue.h')
| -rw-r--r-- | src/network/networkd-queue.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/network/networkd-queue.h b/src/network/networkd-queue.h index ac4c5c13af..0c822094e8 100644 --- a/src/network/networkd-queue.h +++ b/src/network/networkd-queue.h @@ -39,7 +39,17 @@ typedef enum RequestType { REQUEST_TYPE_RADV, REQUEST_TYPE_ROUTE, REQUEST_TYPE_ROUTING_POLICY_RULE, - REQUEST_TYPE_SET_LINK, + REQUEST_TYPE_SET_LINK_ADDRESS_GENERATION_MODE, /* Setting IPv6LL address generation mode. */ + REQUEST_TYPE_SET_LINK_BOND, /* Setting bond configs. */ + REQUEST_TYPE_SET_LINK_BRIDGE, /* Setting bridge configs. */ + REQUEST_TYPE_SET_LINK_BRIDGE_VLAN, /* Setting bridge VLAN configs. */ + REQUEST_TYPE_SET_LINK_CAN, /* Setting CAN interface configs. */ + REQUEST_TYPE_SET_LINK_FLAGS, /* Setting IFF_NOARP or friends. */ + REQUEST_TYPE_SET_LINK_GROUP, /* Setting interface group. */ + REQUEST_TYPE_SET_LINK_IPOIB, /* Setting IPoIB configs. */ + REQUEST_TYPE_SET_LINK_MAC, /* Setting MAC address. */ + REQUEST_TYPE_SET_LINK_MASTER, /* Setting IFLA_MASTER. */ + REQUEST_TYPE_SET_LINK_MTU, /* Setting MTU. */ REQUEST_TYPE_TC_CLASS, REQUEST_TYPE_TC_QDISC, REQUEST_TYPE_UP_DOWN, @@ -103,3 +113,5 @@ int link_queue_request( int manager_process_requests(sd_event_source *s, void *userdata); int request_call_netlink_async(sd_netlink *nl, sd_netlink_message *m, Request *req); + +const char* request_type_to_string(RequestType t) _const_; |
