diff options
author | Susant Sahani <susant@redhat.com> | 2017-04-25 16:06:12 +0530 |
---|---|---|
committer | Susant Sahani <susant@redhat.com> | 2017-04-26 16:00:44 +0530 |
commit | 30746d6088ccfec802972fd5ee12a1e945a0f69b (patch) | |
tree | 21dc95a6c429597eeffc32b0df5ad11fa83c8312 /src/libsystemd/sd-netlink/netlink-util.h | |
parent | 6385cb31ef443be3e0d6da5ea62a267a49174688 (diff) | |
download | systemd-30746d6088ccfec802972fd5ee12a1e945a0f69b.tar.gz systemd-30746d6088ccfec802972fd5ee12a1e945a0f69b.tar.bz2 systemd-30746d6088ccfec802972fd5ee12a1e945a0f69b.zip |
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.h | 4 |
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); |