summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_map.h
diff options
context:
space:
mode:
authorWesley Coakley <wcoakley@nvidia.com>2020-06-24 11:37:06 +0200
committerWesley Coakley <wcoakley@nvidia.com>2020-07-15 18:59:36 +0200
commit116b86bdb9ecff4567b2a300e1cf8cf148b89103 (patch)
treecfc7803d5c8302397a8f2739f4968f22c66ec4f2 /pbrd/pbr_map.h
parentpbrd, zebra, lib: DSCP / ECN-based PBR Matching (diff)
downloadfrr-116b86bdb9ecff4567b2a300e1cf8cf148b89103.tar.xz
frr-116b86bdb9ecff4567b2a300e1cf8cf148b89103.zip
pbrd: dscp interpret standard codepoints
Matching by dscp may now also be specified by its standard codepoint (provided it has one), such as `cf0` or `af11`. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Diffstat (limited to 'pbrd/pbr_map.h')
-rw-r--r--pbrd/pbr_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h
index fb8c6bf03..05b8d407d 100644
--- a/pbrd/pbr_map.h
+++ b/pbrd/pbr_map.h
@@ -169,6 +169,8 @@ extern void pbr_map_add_interface(struct pbr_map *pbrm, struct interface *ifp);
extern void pbr_map_interface_delete(struct pbr_map *pbrm,
struct interface *ifp);
+extern uint8_t pbr_map_decode_dscp_enum(const char *name);
+
/* Update maps installed on interface */
extern void pbr_map_policy_interface_update(const struct interface *ifp,
bool state_up);