diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-29 17:33:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-29 17:33:00 +0200 |
commit | 68542a6da651a4a3f5d280482313f14508618c43 (patch) | |
tree | dbbc3aa2f4b76ceb345df7896cbb1277e2e6372c /zebra/rule_netlink.c | |
parent | Merge pull request #2307 from opensourcerouting/master-isis-tlv-copy-fix (diff) | |
parent | bgpd: attributes presence checked when mpreach is present (diff) | |
download | frr-68542a6da651a4a3f5d280482313f14508618c43.tar.xz frr-68542a6da651a4a3f5d280482313f14508618c43.zip |
Merge pull request #2142 from pguibert6WIND/fs_zebra_complement
Flowspec complement : port support and policy routing per interface and plugin wrapper
Diffstat (limited to 'zebra/rule_netlink.c')
-rw-r--r-- | zebra/rule_netlink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/rule_netlink.c b/zebra/rule_netlink.c index 5f7354585..f0ed8f2f5 100644 --- a/zebra/rule_netlink.c +++ b/zebra/rule_netlink.c @@ -98,6 +98,12 @@ static int netlink_rule_update(int cmd, struct zebra_pbr_rule *rule) &rule->rule.filter.dst_ip.u.prefix, bytelen); } + /* fwmark, if specified */ + if (IS_RULE_FILTERING_ON_FWMARK(rule)) { + addattr32(&req.n, sizeof(req), FRA_FWMARK, + rule->rule.filter.fwmark); + } + /* Route table to use to forward, if filter criteria matches. */ if (rule->rule.action.table < 256) req.frh.table = rule->rule.action.table; |