diff options
author | Tom Gundersen <teg@jklm.no> | 2015-10-05 22:44:38 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-10-05 22:44:38 +0200 |
commit | dc545f8331333476ba3b08c677e44b565ad1c738 (patch) | |
tree | a7efef2e0c0708d5932228a1d8aad4b50cd97e72 /src/libsystemd/sd-netlink/netlink-message.c | |
parent | 2b22ffaf600df7f775ce6a7fdf4a470f04f8e75d (diff) | |
parent | 3428fe07f0fc639d2e07297f0c4a2392c9bb2a68 (diff) |
Merge pull request #1459 from ssahani/bridge1
networkd: add bridge properties
Diffstat (limited to 'src/libsystemd/sd-netlink/netlink-message.c')
-rw-r--r-- | src/libsystemd/sd-netlink/netlink-message.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-message.c b/src/libsystemd/sd-netlink/netlink-message.c index 0d8e37b856..cf693de5fb 100644 --- a/src/libsystemd/sd-netlink/netlink-message.c +++ b/src/libsystemd/sd-netlink/netlink-message.c @@ -149,6 +149,15 @@ int sd_netlink_message_get_type(sd_netlink_message *m, uint16_t *type) { return 0; } +int sd_netlink_message_set_flags(sd_netlink_message *m, uint16_t flags) { + assert_return(m, -EINVAL); + assert_return(flags, -EINVAL); + + m->hdr->nlmsg_flags = flags; + + return 0; +} + int sd_netlink_message_is_broadcast(sd_netlink_message *m) { assert_return(m, -EINVAL); |