diff options
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r-- | proto/ospf/rt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 0adc3871..0031089c 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -1428,7 +1428,7 @@ loop: static void * ospf_fib_route(struct fib *f, ip_addr a) { - if (ospf_is_v2(p)) + if (f->addr_type == NET_IP4) return ospf_fib_route_ip4(f, ipa_to_ip4(a), IP4_MAX_PREFIX_LENGTH); else return ospf_fib_route_ip6(f, ipa_to_ip6(a), IP6_MAX_PREFIX_LENGTH); |