forked from Mirror/frr
zebra: Fix ignored return value from inet_pton
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
88dde69cb6
commit
b51c659775
|
@ -1997,7 +1997,8 @@ static int zfpm_init(struct thread_master *master)
|
||||||
zfpm_stats_init(&zfpm_g->cumulative_stats);
|
zfpm_stats_init(&zfpm_g->cumulative_stats);
|
||||||
|
|
||||||
memset(&ipv4ll_gateway, 0, sizeof(ipv4ll_gateway));
|
memset(&ipv4ll_gateway, 0, sizeof(ipv4ll_gateway));
|
||||||
inet_pton(AF_INET, ipv4_ll_buf, &ipv4ll_gateway.ipv4);
|
if (inet_pton(AF_INET, ipv4_ll_buf, &ipv4ll_gateway.ipv4) != 1)
|
||||||
|
zlog_warn("inet_pton failed for %s", ipv4_ll_buf);
|
||||||
|
|
||||||
install_node(&zebra_node);
|
install_node(&zebra_node);
|
||||||
install_element(ENABLE_NODE, &show_zebra_fpm_stats_cmd);
|
install_element(ENABLE_NODE, &show_zebra_fpm_stats_cmd);
|
||||||
|
|
Loading…
Reference in a new issue