From 30746d6088ccfec802972fd5ee12a1e945a0f69b Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Tue, 25 Apr 2017 16:06:12 +0530 Subject: sd-netlink: add support for address label --- src/libsystemd/sd-netlink/netlink-util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libsystemd/sd-netlink/netlink-util.h') 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); -- cgit v1.2.3-54-g00ecf