diff options
author | Thomas Graf <tgraf@suug.ch> | 2010-10-28 23:38:10 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2010-10-28 23:38:10 (GMT) |
commit | 6862c6592ad598dde0d827039b30df1a947822d1 (patch) | |
tree | 7204448c63f2e2f793aac46d00598067a398fc90 /lib | |
parent | ee88c71d16a6b777c916275401a971eea78871d6 (diff) | |
download | libnl-6862c6592ad598dde0d827039b30df1a947822d1.zip libnl-6862c6592ad598dde0d827039b30df1a947822d1.tar.gz libnl-6862c6592ad598dde0d827039b30df1a947822d1.tar.bz2 |
Include RTA_MARK in routing rule messages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/rule.c | 3 |
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; |