summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-netlink/netlink-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-03-06 17:44:15 +0100
committerGitHub <noreply@github.com>2020-03-06 17:44:15 +0100
commitbba1f90ff598ffa638a9066f0a7934a8f08c41ab (patch)
tree19ad15d5b51361db3eab40b179679f67c844c4d5 /src/libsystemd/sd-netlink/netlink-util.h
parentudev: support to update flow control parameter (diff)
parenttest-network: add a test case for CAKE (diff)
downloadsystemd-bba1f90ff598ffa638a9066f0a7934a8f08c41ab.tar.xz
systemd-bba1f90ff598ffa638a9066f0a7934a8f08c41ab.zip
Merge pull request #14890 from yuwata/network-tc-next
network: tc-next
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 d2d8334b21..8ed94063e3 100644
--- a/src/libsystemd/sd-netlink/netlink-util.h
+++ b/src/libsystemd/sd-netlink/netlink-util.h
@@ -47,6 +47,10 @@ static inline bool rtnl_message_type_is_qdisc(uint16_t type) {
return IN_SET(type, RTM_NEWQDISC, RTM_DELQDISC, RTM_GETQDISC);
}
+static inline bool rtnl_message_type_is_tclass(uint16_t type) {
+ return IN_SET(type, RTM_NEWTCLASS, RTM_DELTCLASS, RTM_GETTCLASS);
+}
+
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);
int rtnl_set_link_alternative_names(sd_netlink **rtnl, int ifindex, char * const *alternative_names);