From 60c274aaf8356315599a3d91339fc9540afa4247 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Sun, 10 Jan 2016 08:14:25 +0000 Subject: [PATCH] Initialize error after r293626 in case neither INET nor INET6 is compiled into the kernel. Ideally lots more code would just not be called (or compiled in) in that case but that requires a lot more surgery. For now try to make IP-less kernels compile again. --- sys/netpfil/ipfw/ip_fw_table_algo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c index e6b7f6f53a1c..75b2b6707276 100644 --- a/sys/netpfil/ipfw/ip_fw_table_algo.c +++ b/sys/netpfil/ipfw/ip_fw_table_algo.c @@ -3826,6 +3826,9 @@ ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen, error = fib6_lookup_nh_basic(ti->data, (struct in6_addr *)key, 0, 0, 0, &nh6); #endif +#if !defined(INET6) && !defined(INET) + error = ENOENT; +#endif if (error != 0) return (0);