mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 18:04:03 +00:00
ripngd: Intentionally ignore return code for str2prefix_ipv6
We are calling str2prefix_ipv6 for a default route. Since we know this will always succeed we can safely tell the compiler that we are ok ignoring the return code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
8b6b6b694d
commit
147bb9ed61
@ -163,7 +163,7 @@ int ripngd_instance_default_information_originate_modify(
|
|||||||
ripng = nb_running_get_entry(args->dnode, NULL, true);
|
ripng = nb_running_get_entry(args->dnode, NULL, true);
|
||||||
default_information = yang_dnode_get_bool(args->dnode, NULL);
|
default_information = yang_dnode_get_bool(args->dnode, NULL);
|
||||||
|
|
||||||
str2prefix_ipv6("::/0", &p);
|
(void)str2prefix_ipv6("::/0", &p);
|
||||||
if (default_information) {
|
if (default_information) {
|
||||||
ripng_redistribute_add(ripng, ZEBRA_ROUTE_RIPNG,
|
ripng_redistribute_add(ripng, ZEBRA_ROUTE_RIPNG,
|
||||||
RIPNG_ROUTE_DEFAULT, &p, 0, NULL, 0);
|
RIPNG_ROUTE_DEFAULT, &p, 0, NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user