summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorRyoga Saito <contact@proelbtn.com>2021-09-09 06:51:21 +0200
committerRyoga Saito <contact@proelbtn.com>2021-09-14 18:54:31 +0200
commit16f3db2d8cd37adc0a9fc90a87db2b3b5acf35b3 (patch)
treec79defd4966f590e6c465b2c0c6701a3f2fb26f6 /bgpd/bgp_zebra.c
parenttests: update bgp_srv6l3vpn_to_bgp_vrf (diff)
downloadfrr-16f3db2d8cd37adc0a9fc90a87db2b3b5acf35b3.tar.xz
frr-16f3db2d8cd37adc0a9fc90a87db2b3b5acf35b3.zip
bgpd: add sid struct info to bgp_path_info_extra
add SID structure information to bgp_path_info_extra to use structure data in other places. Signed-off-by: Ryoga Saito <contact@proelbtn.com>
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index 51763a0e1..da8cc89cd 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -1434,11 +1434,10 @@ void bgp_zebra_announce(struct bgp_dest *dest, const struct prefix *p,
api_nh->weight = nh_weight;
- if (mpinfo->extra
- && !sid_zero(&mpinfo->extra->sid[0])
+ if (mpinfo->extra && !sid_zero(&mpinfo->extra->sid[0].sid)
&& !CHECK_FLAG(api.flags, ZEBRA_FLAG_EVPN_ROUTE)) {
has_valid_sid = 1;
- memcpy(&api_nh->seg6_segs, &mpinfo->extra->sid[0],
+ memcpy(&api_nh->seg6_segs, &mpinfo->extra->sid[0].sid,
sizeof(api_nh->seg6_segs));
}