aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-21 01:45:49 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-04-21 01:49:18 +0000
commit67372fb3e06ebaccfe7c093aa78009d161fa58e6 (patch)
treef0004b554a10d8a4a7597fcbe495b89e84a9539f
parentc23385612da5dd3195a9b73bfb22bd969dbd26c2 (diff)
downloadsrc-67372fb3e06ebaccfe7c093aa78009d161fa58e6.tar.gz
src-67372fb3e06ebaccfe7c093aa78009d161fa58e6.zip
Fix NOINET[6] build after enabling FIB_ALGO in GENERIC.
Submitted by: jbeich PR: 255389
-rw-r--r--sys/net/route/fib_algo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c
index 43db482d73da..83fff1ec43e0 100644
--- a/sys/net/route/fib_algo.c
+++ b/sys/net/route/fib_algo.c
@@ -706,12 +706,16 @@ fill_change_entry(struct fib_data *fd, struct fib_change_entry *ce, struct rib_c
int plen = 0;
switch (fd->fd_family) {
+#ifdef INET
case AF_INET:
rt_get_inet_prefix_plen(rc->rc_rt, &ce->addr4, &plen, &ce->scopeid);
break;
+#endif
+#ifdef INET6
case AF_INET6:
rt_get_inet6_prefix_plen(rc->rc_rt, &ce->addr6, &plen, &ce->scopeid);
break;
+#endif
}
ce->plen = plen;