summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-11-05 11:54:56 +0000
committerbz <bz@FreeBSD.org>2008-11-05 11:54:56 +0000
commit70360c684f0c00822f0c16ef4461c0d9a259505c (patch)
treede8cef0f82e28b30ce6b0472256e199fdfd79d5a /sys/net
parentd4cefefa413467f3333cee57d612f5203f4fc769 (diff)
downloadFreeBSD-src-70360c684f0c00822f0c16ef4461c0d9a259505c.zip
FreeBSD-src-70360c684f0c00822f0c16ef4461c0d9a259505c.tar.gz
Hide the IPv4 init function if the kernel is compiled without INET.
It is not used in that case and would not compile.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/radix_mpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/radix_mpath.c b/sys/net/radix_mpath.c
index 03800f6..c68db99 100644
--- a/sys/net/radix_mpath.c
+++ b/sys/net/radix_mpath.c
@@ -36,6 +36,7 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_inet.h"
#include "opt_inet6.h"
#include <sys/param.h>
@@ -308,6 +309,7 @@ rtalloc_mpath_fib(struct route *ro, u_int32_t hash, u_int fibnum)
extern int in6_inithead(void **head, int off);
extern int in_inithead(void **head, int off);
+#ifdef INET
int
rn4_mpath_inithead(void **head, int off)
{
@@ -321,6 +323,7 @@ rn4_mpath_inithead(void **head, int off)
} else
return 0;
}
+#endif
#ifdef INET6
int
OpenPOWER on IntegriCloud