summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-netlink/netlink-util.h
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2019-10-07 16:19:00 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-30 09:33:51 +0900
commit0f5bd7fe24a5be4588f5d4def4c6cf9c6847a0bd (patch)
tree9db0e082c0cc7d66807c73947262025d579f5128 /src/libsystemd/sd-netlink/netlink-util.h
parent644ee2546102f9aa12b11c28b3c5e80b62beb157 (diff)
downloadsystemd-0f5bd7fe24a5be4588f5d4def4c6cf9c6847a0bd.tar.gz
systemd-0f5bd7fe24a5be4588f5d4def4c6cf9c6847a0bd.tar.bz2
systemd-0f5bd7fe24a5be4588f5d4def4c6cf9c6847a0bd.zip
network: introduce TrafficControl
Add network delay to a interface
Diffstat (limited to 'src/libsystemd/sd-netlink/netlink-util.h')
-rw-r--r--src/libsystemd/sd-netlink/netlink-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-util.h b/src/libsystemd/sd-netlink/netlink-util.h
index 923accb7e3..94410e520a 100644
--- a/src/libsystemd/sd-netlink/netlink-util.h
+++ b/src/libsystemd/sd-netlink/netlink-util.h
@@ -41,6 +41,10 @@ static inline bool rtnl_message_type_is_routing_policy_rule(uint16_t type) {
return IN_SET(type, RTM_NEWRULE, RTM_DELRULE, RTM_GETRULE);
}
+static inline bool rtnl_message_type_is_qdisc(uint16_t type) {
+ return IN_SET(type, RTM_NEWQDISC, RTM_DELQDISC, RTM_GETQDISC);
+}
+
int rtnl_set_link_name(sd_netlink **rtnl, int ifindex, const char *name);
int rtnl_set_link_properties(sd_netlink **rtnl, int ifindex, const char *alias, const struct ether_addr *mac, uint32_t mtu);