]> git.proxmox.com Git - mirror_frr.git/commit
ospfd: Fix Zebra route add message truncation issue
authorAaron LI <aly@aaronly.me>
Thu, 30 Jul 2020 11:22:34 +0000 (19:22 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 30 Jul 2020 15:16:18 +0000 (08:16 -0700)
commit1a08238236242ad8f1a0d24592d9d76bdcf1fefe
tree2c3a8fe2cce3c59f8e16c88ad06504a2f6fc278f
parent25ee44b52278c86fda27f76e932f6a12c375bf10
ospfd: Fix Zebra route add message truncation issue

The `INET_ADDRSTRLEN` is 16 and is only enough to format an IPv4 address.
So when there is a prefix (`/xx`), the debug output may get truncated.
Use `PREFIX2STR_BUFFER` macro instead to fix the issue.

Signed-off-by: Aaron LI <aly@aaronly.me>
ospfd/ospf_zebra.c