From 5d4795f3722911ccd7953c0cf112c1f7624ea834 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 21 Jan 2014 15:20:42 +0100 Subject: sd-rtnl: link - allow setting the change mask --- src/libsystemd/sd-rtnl/rtnl-message.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/libsystemd') diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c index 984115c3c0..af8f8cf762 100644 --- a/src/libsystemd/sd-rtnl/rtnl-message.c +++ b/src/libsystemd/sd-rtnl/rtnl-message.c @@ -167,13 +167,16 @@ int sd_rtnl_message_route_new(uint16_t nlmsg_type, unsigned char rtm_family, return 0; } -int sd_rtnl_message_link_set_flags(sd_rtnl_message *m, unsigned flags) { +int sd_rtnl_message_link_set_flags(sd_rtnl_message *m, unsigned flags, unsigned change) { struct ifinfomsg *ifi; ifi = NLMSG_DATA(m->hdr); ifi->ifi_flags = flags; - ifi->ifi_change = 0xffffffff; + if (change) + ifi->ifi_change = change; + else + ifi->ifi_change = 0xffffffff; return 0; } -- cgit v1.2.3-54-g00ecf