diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-16 01:34:27 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-16 01:41:12 +0100 |
commit | eb2f9b18026c7b52099b324f4e9136f23b340c8d (patch) | |
tree | a6e037a95d96019bf710c76d1b3784732b0304de | |
parent | b087416f97a2662d290dde1cd68c3134317d0b1f (diff) |
sd-rtnl: only alter link flags when reqeusted to
-rw-r--r-- | src/libsystemd/rtnl-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/rtnl-message.c b/src/libsystemd/rtnl-message.c index 517df61156..984115c3c0 100644 --- a/src/libsystemd/rtnl-message.c +++ b/src/libsystemd/rtnl-message.c @@ -173,6 +173,7 @@ int sd_rtnl_message_link_set_flags(sd_rtnl_message *m, unsigned flags) { ifi = NLMSG_DATA(m->hdr); ifi->ifi_flags = flags; + ifi->ifi_change = 0xffffffff; return 0; } @@ -208,7 +209,6 @@ int sd_rtnl_message_link_new(uint16_t nlmsg_type, int index, sd_rtnl_message **r ifi->ifi_family = AF_UNSPEC; ifi->ifi_index = index; - ifi->ifi_change = 0xffffffff; UPDATE_RTA(*ret, IFLA_RTA(ifi)); |