summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-netlink/rtnl-message.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-12-15 12:57:51 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-12-15 20:37:50 +0100
commitffeb16f5d832b1c65b8c8a1dd9bdd028bd76fc72 (patch)
tree395dda3cb4e517739ead37a268501bfcb116ecd9 /src/libsystemd/sd-netlink/rtnl-message.c
parentlinux: update headers (diff)
downloadsystemd-ffeb16f5d832b1c65b8c8a1dd9bdd028bd76fc72.tar.xz
systemd-ffeb16f5d832b1c65b8c8a1dd9bdd028bd76fc72.zip
sd-netlink: support IFLA_PROP_LIST and IFLA_ALT_IFNAME attributes
Diffstat (limited to '')
-rw-r--r--src/libsystemd/sd-netlink/rtnl-message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/rtnl-message.c b/src/libsystemd/sd-netlink/rtnl-message.c
index 5bf2efd510..71d2bf0f8b 100644
--- a/src/libsystemd/sd-netlink/rtnl-message.c
+++ b/src/libsystemd/sd-netlink/rtnl-message.c
@@ -512,6 +512,8 @@ int sd_rtnl_message_new_link(sd_netlink *rtnl, sd_netlink_message **ret,
if (nlmsg_type == RTM_NEWLINK)
(*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_EXCL;
+ else if (nlmsg_type == RTM_NEWLINK)
+ (*ret)->hdr->nlmsg_flags |= NLM_F_EXCL | NLM_F_CREATE | NLM_F_APPEND;
ifi = NLMSG_DATA((*ret)->hdr);