summaryrefslogtreecommitdiffstats
path: root/lib/pbr.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-06-06 17:31:46 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-07-08 08:36:45 +0200
commitf449d22396d770330906d860f496a830117f2789 (patch)
tree9b1185954d560e408fe748de4a01da9c3e468cbe /lib/pbr.h
parentMerge pull request #4639 from opensourcerouting/c-ares-lib (diff)
downloadfrr-f449d22396d770330906d860f496a830117f2789.tar.xz
frr-f449d22396d770330906d860f496a830117f2789.zip
bgp, zebra, lib: add protocol support for iptables
in addition to support for tcpflags, it is possible to filter on any protocol. the filtering can then be based with iptables. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/pbr.h')
-rw-r--r--lib/pbr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pbr.h b/lib/pbr.h
index 1425e679c..ecd50447e 100644
--- a/lib/pbr.h
+++ b/lib/pbr.h
@@ -121,6 +121,7 @@ struct pbr_rule {
#define MATCH_PKT_LEN_INVERSE_SET (1 << 8)
#define MATCH_FRAGMENT_INVERSE_SET (1 << 9)
#define MATCH_ICMP_SET (1 << 10)
+#define MATCH_PROTOCOL_SET (1 << 11)
extern int zapi_pbr_rule_encode(uint8_t cmd, struct stream *s,
struct pbr_rule *zrule);