]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix prefix-sid crash bug and add topotest (step4)
authorHiroki Shirokura <slank.dev@gmail.com>
Thu, 24 Dec 2020 04:07:39 +0000 (04:07 +0000)
committerMark Stapp <mjs@voltanet.io>
Wed, 2 Jun 2021 14:24:48 +0000 (10:24 -0400)
commitb83127e1568bc22fd8011b535eb2cf95de1dac59
tree74a53b0332d9d9db6dd19b6d01d3ae4d27b9eb0d
parent4df9d8592b1631e6cb50e291cab1ff7486467a3d
bgpd: fix prefix-sid crash bug and add topotest (step4)

This commit fix bgpd's prefix-sid type4,5 feature which has
miss implementation from https://github.com/FRRouting/frr/pull/5653
was merged. Due to some nessesary lines are not presented.

When bgpd receives multi update message with same service-sid on
prefix-sid type-5 attribute, bgpd will crash arround path-attribute's
values object reference count.

And also, this commit add a topotest to check that feature work fine.

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
bgpd/bgp_attr.c
tests/topotests/bgp_prefix_sid2/peer1/exabgp.cfg [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/peer1/exabgp.env [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/r1/bgpd.conf [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/r1/vpnv6_rib_entry1.json [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/r1/vpnv6_rib_entry2.json [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/r1/zebra.conf [new file with mode: 0644]
tests/topotests/bgp_prefix_sid2/test_bgp_prefix_sid2.py [new file with mode: 0755]