diff options
| author | Ryoga Saito <contact@proelbtn.com> | 2021-12-16 23:09:55 +0900 |
|---|---|---|
| committer | Ryoga Saito <contact@proelbtn.com> | 2021-12-16 23:28:12 +0900 |
| commit | 3d1ae061a352ae7a5c215ece62b2bdb9992a2596 (patch) | |
| tree | 6ab00a8b48e78a165f5df6abbc70dd37dcd0c806 /python/clidef.py | |
| parent | ad1229a077f09d7d7bcfe7bf453730666e6324f5 (diff) | |
bgpd: delete NULL assignment in bgp_attr_hash_alloc
If soft-reconfiguration is enabled, bgp_adj_in_set will be called
from bgp_update and bgp_adj_in_set will call bgp_attr_intern to intern
attr pointer. If given attr isn't found in attrhash, hash_get will call
bgp_attr_hash_alloc to allocate new attr structure. In
bgp_attr_hash_alloc, NULL will be assigned to srv6_vpn field and
srv6_l3vpn field in origin attr pointer. attr->srv6_vpn and
attr->srv6_l3vpn are interned in bgp_attr_intern, so NULL assignment
isn't needed.
And, these fields are used later in bgp_update to set SRv6 information
to bgp_path_info. If bgp_attr_hash_alloc assign NULL to these fields,
SRv6 information will be lost and incorrect routes are inserted into
data-plane.
Signed-off-by: Ryoga Saito <contact@proelbtn.com>
Diffstat (limited to 'python/clidef.py')
0 files changed, 0 insertions, 0 deletions
