Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2019 00:33:17 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343635 - head/sys/netpfil/ipfw
Message-ID:  <201902010033.x110XHXF046987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Fri Feb  1 00:33:17 2019
New Revision: 343635
URL: https://svnweb.freebsd.org/changeset/base/343635

Log:
  Fix build without INET6.

Modified:
  head/sys/netpfil/ipfw/ip_fw_pfil.c

Modified: head/sys/netpfil/ipfw/ip_fw_pfil.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_pfil.c	Thu Jan 31 23:32:19 2019	(r343634)
+++ head/sys/netpfil/ipfw/ip_fw_pfil.c	Fri Feb  1 00:33:17 2019	(r343635)
@@ -533,10 +533,12 @@ ipfw_divert(struct mbuf **m0, int incoming, struct ipf
  * attach or detach hooks for a given protocol family
  */
 VNET_DEFINE_STATIC(pfil_hook_t, ipfw_inet_hook);
-VNET_DEFINE_STATIC(pfil_hook_t, ipfw_inet6_hook);
-VNET_DEFINE_STATIC(pfil_hook_t, ipfw_link_hook);
 #define	V_ipfw_inet_hook	VNET(ipfw_inet_hook)
+#ifdef INET6
+VNET_DEFINE_STATIC(pfil_hook_t, ipfw_inet6_hook);
 #define	V_ipfw_inet6_hook	VNET(ipfw_inet6_hook)
+#endif
+VNET_DEFINE_STATIC(pfil_hook_t, ipfw_link_hook);
 #define	V_ipfw_link_hook	VNET(ipfw_link_hook)
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902010033.x110XHXF046987>