aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-01-30 23:24:26 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-02-04 22:33:53 +0000
commit10977b9f84352c7312a192e99f03dc155db79c54 (patch)
tree1a4249dc13b23313ef5c5aa8c83ea78e0f070dd3
parent88452cb1515550b5a9eb78ed2d88c97d09a57ee4 (diff)
downloadsrc-10977b9f84352c7312a192e99f03dc155db79c54.tar.gz
src-10977b9f84352c7312a192e99f03dc155db79c54.zip
MFC 91f2c69ec206: Fix unused-function waring when compiling with FIB_ALGO.
-rw-r--r--sys/netinet6/in6_fib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/in6_fib.c b/sys/netinet6/in6_fib.c
index 3fbddbc28e3d..614f8111409a 100644
--- a/sys/netinet6/in6_fib.c
+++ b/sys/netinet6/in6_fib.c
@@ -218,6 +218,7 @@ check_urpf(struct nhop_object *nh, uint32_t flags,
return (check_urpf_nhop(nh, flags, src_if));
}
+#ifndef FIB_ALGO
static struct nhop_object *
lookup_nhop(uint32_t fibnum, const struct in6_addr *dst6,
uint32_t scopeid)
@@ -251,6 +252,7 @@ lookup_nhop(uint32_t fibnum, const struct in6_addr *dst6,
return (nh);
}
+#endif
/*
* Performs reverse path forwarding lookup.