From: Thomas Graf Date: Tue, 9 Oct 2012 17:34:23 +0000 (+0200) Subject: link: correctly set LINK_ATTR_PROMISCUITY X-Git-Tag: libnl3_2_14~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2876f8657b5d9187a8c2314c88dffa63ba2bc66;p=libnl link: correctly set LINK_ATTR_PROMISCUITY Signed-off-by: Thomas Graf --- 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; } /**