summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-netlink/netlink-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-04-29 13:42:09 +0200
committerGitHub <noreply@github.com>2017-04-29 13:42:09 +0200
commitccefd046c6c68520f91e49165a4f79f38ca0428e (patch)
tree98aaa5eae6bc1befd0b747d5049441847259137b /src/libsystemd/sd-netlink/netlink-util.h
parentfe685ffb7fab5e925f2956ff12b041b591002ba8 (diff)
parentc23ae61e27ae9928524e86779fa78a56d531278a (diff)
Merge pull request #5529 from ssahani/label
networkd / sd-netlink: add support for address label
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 f49bf4eaa6..49bb226ef3 100644
--- a/src/libsystemd/sd-netlink/netlink-util.h
+++ b/src/libsystemd/sd-netlink/netlink-util.h
@@ -32,6 +32,10 @@ bool rtnl_message_type_is_addr(uint16_t type);
bool rtnl_message_type_is_route(uint16_t type);
bool rtnl_message_type_is_neigh(uint16_t type);
+static inline bool rtnl_message_type_is_addrlabel(uint16_t type) {
+ return IN_SET(type, RTM_NEWADDRLABEL, RTM_DELADDRLABEL, RTM_GETADDRLABEL);
+}
+
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, unsigned mtu);