summaryrefslogtreecommitdiff
path: root/pbrd/pbr_map.h
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 /pbrd/pbr_map.h
parent42ac787226bc3b83aa75f6e2040b2808c72b23ec (diff)
parent99ed46d964bc8634d5f73e48f2eae5feddac6fd6 (diff)
Merge pull request #9007 from donaldsharp/pbr_stuff
add ability to match on proto to pbr
Diffstat (limited to 'pbrd/pbr_map.h')
-rw-r--r--pbrd/pbr_map.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h
index caeadb0644..694b915f48 100644
--- a/pbrd/pbr_map.h
+++ b/pbrd/pbr_map.h
@@ -85,6 +85,17 @@ struct pbr_map_sequence {
uint32_t ruleno;
/*
+ * src and dst ports
+ */
+ uint16_t src_prt;
+ uint16_t dst_prt;
+
+ /*
+ * The ip protocol we want to match on
+ */
+ uint8_t ip_proto;
+
+ /*
* Our policy Catchers
*/
struct prefix *src;