summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_map.h
diff options
context:
space:
mode:
authorMarcin Matląg <marcin.matlag@blackice.com.pl>2019-06-05 22:56:11 +0200
committerJafar Al-Gharaibeh <jafar@atcorp.com>2019-09-03 22:30:10 +0200
commit95a9fe025a2052a05150a450f423f9731127294b (patch)
tree6231d22b490ce020e79afc56b0bd0e4b7096f9af /pbrd/pbr_map.h
parentMerge pull request #4907 from donaldsharp/ospf_write_q (diff)
downloadfrr-95a9fe025a2052a05150a450f423f9731127294b.tar.xz
frr-95a9fe025a2052a05150a450f423f9731127294b.zip
pbrd: initial fwmark support for pbr matches #4460
Adds support to specify marks in pbr-map match clause. Marks should be provided as decimal (unsigned int). Currently supported on Linux only. Attempting to configure marks on other platform will result in: "pbr marks are not supported on this platform" Signed-off-by: Marcin Matlag <marcin.matlag@gmail.com> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'pbrd/pbr_map.h')
-rw-r--r--pbrd/pbr_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h
index 945f76bb2..112acfe44 100644
--- a/pbrd/pbr_map.h
+++ b/pbrd/pbr_map.h
@@ -87,6 +87,7 @@ struct pbr_map_sequence {
*/
struct prefix *src;
struct prefix *dst;
+ uint32_t mark;
/*
* Family of the src/dst. Needed when deleting since we clear them
@@ -126,7 +127,7 @@ struct pbr_map_sequence {
#define PBR_MAP_INVALID_NEXTHOP (1 << 1)
#define PBR_MAP_INVALID_NO_NEXTHOPS (1 << 2)
#define PBR_MAP_INVALID_BOTH_NHANDGRP (1 << 3)
-#define PBR_MAP_INVALID_SRCDST (1 << 4)
+#define PBR_MAP_INVALID_EMPTY (1 << 4)
uint64_t reason;
QOBJ_FIELDS