aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6
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-01-30 23:25:56 +0000
commit91f2c69ec206c2993722bfd818a8888f8237fa7e (patch)
treed995c0e7323d472da9a721103195c258026e04f7 /sys/netinet6
parentd51cc252a062411a1656960eb5d47e954c6c835d (diff)
downloadsrc-91f2c69ec206c2993722bfd818a8888f8237fa7e.tar.gz
src-91f2c69ec206c2993722bfd818a8888f8237fa7e.zip
Fix unused-function waring when compiling with FIB_ALGO.
MFC after: 3 days
Diffstat (limited to 'sys/netinet6')
-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.