]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Use AF_UNSPEC instead of setting to 0
authorDonald Sharp <sharpd@nvidia.com>
Mon, 7 Feb 2022 18:22:41 +0000 (13:22 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 7 Feb 2022 18:22:41 +0000 (13:22 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_nhg.c

index fac312cf7c0c345e965714cc29d8eb192cb57cef..c1b104aec7ca8c4d123ceba5893c6b0ad9997f63 100644 (file)
@@ -2369,7 +2369,7 @@ static unsigned nexthop_active_check(struct route_node *rn,
        else if (rn->p.family == AF_INET6)
                family = AFI_IP6;
        else
-               family = 0;
+               family = AF_UNSPEC;
 
        if (IS_ZEBRA_DEBUG_NHG_DETAIL)
                zlog_debug("%s: re %p, nexthop %pNHv", __func__, re, nexthop);