diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-02-26 18:23:11 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-06-05 13:11:29 +0200 |
| commit | ca32945b1fd694d10307d2885df62251f46bf581 (patch) | |
| tree | 3d8c58c185062f8fe8c771bb55e3dfddf48c3572 /bgpd/bgp_updgrp_packet.c | |
| parent | 3c86f776f053bc9032da8dc3b713f7726117b800 (diff) | |
bgpd: move labels from extra to extra->labels
Move labels from extra to extra->labels. Labels are now stored in a hash
list.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_updgrp_packet.c')
| -rw-r--r-- | bgpd/bgp_updgrp_packet.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c index be3e27afcb..6e30d4f846 100644 --- a/bgpd/bgp_updgrp_packet.c +++ b/bgpd/bgp_updgrp_packet.c @@ -816,8 +816,10 @@ struct bpacket *subgroup_update_packet(struct update_subgroup *subgrp) num_labels = 1; } else { num_labels = bgp_path_info_num_labels(path); - label_pnt = num_labels ? &path->extra->label[0] - : NULL; + label_pnt = + num_labels + ? &path->extra->labels->label[0] + : NULL; } if (stream_empty(snlri)) |
