diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-10-16 08:42:30 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-08-21 13:37:08 +0200 |
commit | 9cec4121623c18eb5d826420e2078e2a78242362 (patch) | |
tree | 345c4ced2b1c8a527dc8dd11e7a2b2e0c2c71599 /bgpd/bgp_flowspec_util.h | |
parent | bgpd: flowspec code support for ipv6 (diff) | |
download | frr-9cec4121623c18eb5d826420e2078e2a78242362.tar.xz frr-9cec4121623c18eb5d826420e2078e2a78242362.zip |
bgpd: ipv6 flowspec address decoding and validation
as per [0], ipv6 adress format introduces an ipv6 offset that needs to
be extracted too. The change include the validation, decoding for
further usage with policy-routing and decoding for dumping.
[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_util.h')
-rw-r--r-- | bgpd/bgp_flowspec_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_flowspec_util.h b/bgpd/bgp_flowspec_util.h index 26d919d7d..6cc4854d7 100644 --- a/bgpd/bgp_flowspec_util.h +++ b/bgpd/bgp_flowspec_util.h @@ -40,7 +40,7 @@ extern int bgp_flowspec_ip_address(enum bgp_flowspec_util_nlri_t type, uint8_t *nlri_ptr, uint32_t max_len, void *result, int *error, - afi_t afi); + afi_t afi, uint8_t *ipv6_offset); extern int bgp_flowspec_bitmask_decode(enum bgp_flowspec_util_nlri_t type, uint8_t *nlri_ptr, |