]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Fix processing of IPv6 Flowspec
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 18 Nov 2019 16:44:34 +0000 (17:44 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 18 Nov 2019 16:56:51 +0000 (17:56 +0100)
commit0f88200247cc61175c7a1d98a3e935aedce93f3b
tree15d9b25b233f2c97856365dd6653752e0c6db607
parent53401bef63013dfee01b65d071ffbd88e457539f
BGP: Fix processing of IPv6 Flowspec

During NLRI parsing of IPv6 Flowspec, dst prefix was not properly
extracted from NLRI, therefore a received flow was stored in a different
position in flowspec routing table, and was not reachable by command
'show route <flow>'.

Add proper prefix part accessors to flowspec code and use them from BGP
NLRI parsing code.

Thanks to Alex D. for the bugreport.
lib/flowspec.c
lib/flowspec.h
lib/flowspec_test.c
proto/bgp/packets.c