frr icon indicating copy to clipboard operation
frr copied to clipboard

pbrd: Fix the way IPv6 address is formatted

Open soumyar-roy opened this issue 1 month ago • 2 comments

Issue: issue is how the IPv6 address is formatted when being printed in PBR. Format specifier %pFX not be the correct one to use for printing IPv6 addresses.

Fix: 1.In C, to print IPv6 addresses, typically use the inet_ntop function to convert the binary address into a human-readable string based on the address family.

  1. During frr reload - preserving the full IPv6 address along with its prefix length

Testing Done: precommit, pbr map with ipv6 and ipv4 rule

Ticket: #3498263 Signed-off-by: Rajesh Varatharaj [email protected]

soumyar-roy avatar Nov 20 '25 00:11 soumyar-roy

ci:rerun

soumyar-roy avatar Nov 20 '25 06:11 soumyar-roy

ci:rerun

soumyar-roy avatar Nov 20 '25 18:11 soumyar-roy