Include RTA_MARK in routing rule messages
This commit is contained in:
parent
ee88c71d16
commit
6862c6592a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue