summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2021-07-27 15:09:29 -0500
committerGitHub <noreply@github.com>2021-07-27 15:09:29 -0500
commit213d980ff904a30565e1b5fcabafabe49143d35c (patch)
tree4cb4bca4547575138df357487c701c3e6e3a37b3 /lib
parent42ac787226bc3b83aa75f6e2040b2808c72b23ec (diff)
parent99ed46d964bc8634d5f73e48f2eae5feddac6fd6 (diff)
Merge pull request #9007 from donaldsharp/pbr_stuff
add ability to match on proto to pbr
Diffstat (limited to 'lib')
-rw-r--r--lib/pbr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pbr.h b/lib/pbr.h
index e365888662..cef1d9d380 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 */
@@ -67,6 +68,9 @@ struct pbr_filter {
/* Filter with fwmark */
uint32_t fwmark;
+
+ /* Filter with the ip protocol */
+ uint8_t ip_proto;
};
/*