diff options
| author | Aaron LI <aly@aaronly.me> | 2020-07-30 19:22:34 +0800 |
|---|---|---|
| committer | Aaron LI <aly@aaronly.me> | 2020-07-30 08:16:18 -0700 |
| commit | 1a08238236242ad8f1a0d24592d9d76bdcf1fefe (patch) | |
| tree | 2c3a8fe2cce3c59f8e16c88ad06504a2f6fc278f /lib/if.c | |
| parent | 25ee44b52278c86fda27f76e932f6a12c375bf10 (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
