summaryrefslogtreecommitdiffstats
path: root/zebra/rule_netlink.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-29 17:33:00 +0200
committerGitHub <noreply@github.com>2018-05-29 17:33:00 +0200
commit68542a6da651a4a3f5d280482313f14508618c43 (patch)
treedbbc3aa2f4b76ceb345df7896cbb1277e2e6372c /zebra/rule_netlink.c
parentMerge pull request #2307 from opensourcerouting/master-isis-tlv-copy-fix (diff)
parentbgpd: attributes presence checked when mpreach is present (diff)
downloadfrr-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.c6
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;