]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-netlink/netlink-message.c
sd-rtnl: introduce new API to set the NL header flags
authorSusant Sahani <ssahani@gmail.com>
Mon, 5 Oct 2015 04:06:57 +0000 (09:36 +0530)
committerSusant Sahani <ssahani@gmail.com>
Mon, 5 Oct 2015 04:13:29 +0000 (09:43 +0530)
commitc06cb593eba5696cd0e92af59e864ce80d702ce4
treeb2938e60ab585625aff67795f052177e61729a2e
parentced671e105e96c33e4ece1041dd7fbb0f2d4b0d3
sd-rtnl: introduce new API to set the NL header flags

By default we set as NLM_F_CREATE | NLM_F_EXCL in
sd_rtnl_message_new_link
But incase of bridge we need to set NLM_F_REQUEST | NLM_F_ACK.

If NLM_F_EXCL is set then we are unable to set the parameters. As bridge
supports setting properties after creation not during creation.
src/libsystemd/sd-netlink/netlink-message.c
src/systemd/sd-netlink.h