diff options
author | Thomas Graf <tgraf@redhat.com> | 2012-10-09 17:34:23 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-10-09 17:34:23 (GMT) |
commit | d2876f8657b5d9187a8c2314c88dffa63ba2bc66 (patch) | |
tree | 776953f2aa8dc6e2282c7a0fc2469a0140df7338 | |
parent | 6ac07179e580405608a39a377a88b2c65bbdba5c (diff) | |
download | libnl-d2876f8657b5d9187a8c2314c88dffa63ba2bc66.zip libnl-d2876f8657b5d9187a8c2314c88dffa63ba2bc66.tar.gz libnl-d2876f8657b5d9187a8c2314c88dffa63ba2bc66.tar.bz2 |
link: correctly set LINK_ATTR_PROMISCUITY
Signed-off-by: Thomas Graf <tgraf@redhat.com>
-rw-r--r-- | lib/route/link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/link.c b/lib/route/link.c index 7d64aa0..0e14f45 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -539,7 +539,7 @@ static int link_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who, if (tb[IFLA_PROMISCUITY]) { link->l_promiscuity = nla_get_u32(tb[IFLA_PROMISCUITY]); - link->l_flags |= LINK_ATTR_PROMISCUITY; + link->ce_mask |= LINK_ATTR_PROMISCUITY; } err = pp->pp_cb((struct nl_object *) link, pp); @@ -2034,7 +2034,7 @@ char *rtnl_link_get_type(struct rtnl_link *link) void rtnl_link_set_promiscuity(struct rtnl_link *link, uint32_t count) { link->l_promiscuity = count; - link->l_master |= LINK_ATTR_PROMISCUITY; + link->ce_mask |= LINK_ATTR_PROMISCUITY; } /** |