summaryrefslogtreecommitdiff
path: root/lib/filter_cli.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2023-11-24 16:38:31 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2023-11-30 14:25:08 +0100
commite91ef7727f7c8062f0fc78fe3f6bf5a654abd0b7 (patch)
treeb5a6f21b3ab150c66a46d8b3dca5f08e3b7bafa4 /lib/filter_cli.c
parentd41b425ab3384f80b338a8ec3b407a277a8646e0 (diff)
zebra: fix wrong nexthop id debug message
When allocating big protocol level identifiers, the number range is big, and when pushing to netlink messages, the first nexthop group is truncated, whereas the nexthop has been installed on the kernel. > ubuntu2204(config)# nexthop-group A > ubuntu2204(config-nh-group)# group 1 > ubuntu2204(config-nh-group)# group 2 > ubuntu2204(config-nh-group)# exi > ubuntu2204(config)# nexthop-group 1 > ubuntu2204(config-nh-group)# nexthop 192.0.2.130 loop1 enable-proto-nhg-control > ubuntu2204(config-nh-group)# exi > ubuntu2204(config)# nexthop-group 2 > ubuntu2204(config-nh-group)# nexthop 192.0.2.131 loop1 enable-proto-nhg-control > [..] > 2023/11/24 16:47:40 ZEBRA: [VNMVB-91G3G] _netlink_nexthop_build_group: ID (179687500): group 17968/179687502 > # ip nexthop ls > id 179687500 group 179687501/179687502 proto 194 Fix this by increasing the buffer size when appending the first number. Fixes: 8d03bc501b5f ("zebra: Handle nhg_hash_entry encaps/more debugging") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/filter_cli.c')
0 files changed, 0 insertions, 0 deletions