mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
bgpd: Reuse bgp_path_info_extra_get() for allocating new bgp path info
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
a9155261f7
commit
53d3a0a80d
@ -6214,7 +6214,7 @@ static void bgp_static_update_safi(struct bgp *bgp, const struct prefix *p,
|
|||||||
new = info_make(ZEBRA_ROUTE_BGP, BGP_ROUTE_STATIC, 0, bgp->peer_self,
|
new = info_make(ZEBRA_ROUTE_BGP, BGP_ROUTE_STATIC, 0, bgp->peer_self,
|
||||||
attr_new, dest);
|
attr_new, dest);
|
||||||
SET_FLAG(new->flags, BGP_PATH_VALID);
|
SET_FLAG(new->flags, BGP_PATH_VALID);
|
||||||
new->extra = bgp_path_info_extra_new();
|
bgp_path_info_extra_get(new);
|
||||||
if (num_labels) {
|
if (num_labels) {
|
||||||
new->extra->label[0] = bgp_static->label;
|
new->extra->label[0] = bgp_static->label;
|
||||||
new->extra->num_labels = num_labels;
|
new->extra->num_labels = num_labels;
|
||||||
|
Loading…
Reference in New Issue
Block a user