Include RTA_MARK in routing rule messages

This commit is contained in:
Thomas Graf 2010-10-29 01:38:10 +02:00
parent ee88c71d16
commit 6862c6592a

View file

@ -386,6 +386,9 @@ static int build_rule_msg(struct rtnl_rule *tmpl, int cmd, int flags,
if (tmpl->ce_mask & RULE_ATTR_IIF)
NLA_PUT_STRING(msg, RTA_IIF, tmpl->r_iif);
if (tmpl->ce_mask & RULE_ATTR_MARK)
NLA_PUT_U32(msg, RTA_MARK, tmpl->r_mark);
*result = msg;
return 0;