summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_flowspec_private.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-10-16 08:44:20 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-08-21 13:37:08 +0200
commit4088180002478f772332aefbac54f9148f20018f (patch)
treec6812a338a22003d3b58eea932bd00db65788831 /bgpd/bgp_flowspec_private.h
parentbgpd: ipv6 flowspec address decoding and validation (diff)
downloadfrr-4088180002478f772332aefbac54f9148f20018f.tar.xz
frr-4088180002478f772332aefbac54f9148f20018f.zip
bgpd, lib: support for flow_label flowspec type
in ipv6 flowspec, a new type is defined to be able to do filtering rules based on 20 bits flow label field as depicted in [0]. The change include the decoding by flowspec, and the addition of a new attribute in policy routing rule, so that the data is ready to be sent to zebra. The commit also includes a check on fragment option, since dont fragment bit does not exist in ipv6, the value should always be set to 0, otherwise the flowspec rule becomes invalid. [0] https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-09 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_flowspec_private.h')
-rw-r--r--bgpd/bgp_flowspec_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_flowspec_private.h b/bgpd/bgp_flowspec_private.h
index cec244c16..757a8ae2e 100644
--- a/bgpd/bgp_flowspec_private.h
+++ b/bgpd/bgp_flowspec_private.h
@@ -41,5 +41,6 @@
#define FLOWSPEC_PKT_LEN 10
#define FLOWSPEC_DSCP 11
#define FLOWSPEC_FRAGMENT 12
+#define FLOWSPEC_FLOW_LABEL 13 /* For IPv6 only */
#endif /* _FRR_BGP_FLOWSPEC_PRIVATE_H */