]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_flowspec_util.c
bgpd, lib: support for flow_label flowspec type
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 16 Oct 2019 06:44:20 +0000 (08:44 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 21 Aug 2020 11:37:08 +0000 (13:37 +0200)
commit4088180002478f772332aefbac54f9148f20018f
treec6812a338a22003d3b58eea932bd00db65788831
parent9cec4121623c18eb5d826420e2078e2a78242362
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>
bgpd/bgp_flowspec.c
bgpd/bgp_flowspec_private.h
bgpd/bgp_flowspec_util.c
bgpd/bgp_flowspec_vty.c
bgpd/bgp_pbr.c
bgpd/bgp_pbr.h
lib/pbr.h