summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2020-07-30 19:22:34 +0800
committerAaron LI <aly@aaronly.me>2020-07-30 08:16:18 -0700
commit1a08238236242ad8f1a0d24592d9d76bdcf1fefe (patch)
tree2c3a8fe2cce3c59f8e16c88ad06504a2f6fc278f /lib/if.c
parent25ee44b52278c86fda27f76e932f6a12c375bf10 (diff)
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>
Diffstat (limited to 'lib/if.c')
0 files changed, 0 insertions, 0 deletions