summaryrefslogtreecommitdiffstats
path: root/lib/pbr.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-06-04 17:58:23 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-07-08 17:12:47 +0200
commit8096bd72aa8b775d8ce8d7d085b79d8a56bbd686 (patch)
tree1f45f70659365355ac61169dabe2d8c86b76634d /lib/pbr.h
parentzebra: Add nl_attr_put8 so we can put uint8_t in netlink messages (diff)
downloadfrr-8096bd72aa8b775d8ce8d7d085b79d8a56bbd686.tar.xz
frr-8096bd72aa8b775d8ce8d7d085b79d8a56bbd686.zip
zebra: Add ability to encode/decode netlink FRA_IP_PROTO for rule changes
Encode/Decode the FRA_IP_PROTO but do nothing with it at the moment. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/pbr.h')
-rw-r--r--lib/pbr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pbr.h b/lib/pbr.h
index e36588866..23092cf1d 100644
--- a/lib/pbr.h
+++ b/lib/pbr.h
@@ -49,7 +49,8 @@ struct pbr_filter {
#define PBR_FILTER_PROTO (1 << 5)
#define PBR_FILTER_SRC_PORT_RANGE (1 << 6)
#define PBR_FILTER_DST_PORT_RANGE (1 << 7)
-#define PBR_FILTER_DSFIELD (1 << 8)
+#define PBR_FILTER_DSFIELD (1 << 8)
+#define PBR_FILTER_IP_PROTOCOL (1 << 9)
#define PBR_DSFIELD_DSCP (0xfc) /* Upper 6 bits of DS field: DSCP */
#define PBR_DSFIELD_ECN (0x03) /* Lower 2 bits of DS field: BCN */