diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-04-27 16:32:51 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-25 15:49:38 +0200 |
commit | 2bee7aae60285c01a4c7e81c20940c1feff1404e (patch) | |
tree | 5d008d29dc34a69f2d851b2a351af5a52397534a /zebra/zebra_pbr.h | |
parent | zebra: handle notification in case pbr ipset, or iptables is removed (diff) | |
download | frr-2bee7aae60285c01a4c7e81c20940c1feff1404e.tar.xz frr-2bee7aae60285c01a4c7e81c20940c1feff1404e.zip |
zebra: add netlink rule support for fwmark option
When a mark is set, incoming traffic having that mark set can be
redirected to a specific table identifier. This work is done through
netlink.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_pbr.h')
-rw-r--r-- | zebra/zebra_pbr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_pbr.h b/zebra/zebra_pbr.h index 8cb83fe7c..23b6e5c90 100644 --- a/zebra/zebra_pbr.h +++ b/zebra/zebra_pbr.h @@ -48,6 +48,8 @@ struct zebra_pbr_rule { (r->rule.filter.filter_bm & PBR_FILTER_SRC_PORT) #define IS_RULE_FILTERING_ON_DST_PORT(r) \ (r->rule.filter.filter_bm & PBR_FILTER_DST_PORT) +#define IS_RULE_FILTERING_ON_FWMARK(r) \ + (r->rule.filter.filter_bm & PBR_FILTER_FWMARK) /* * An IPSet Entry Filter |