summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/route/rule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/route/rule.c b/lib/route/rule.c
index 381c584..6108bef 100644
--- a/lib/route/rule.c
+++ b/lib/route/rule.c
@@ -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;