From owner-svn-src-projects@FreeBSD.ORG Tue Nov 4 17:28:22 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B28D421; Tue, 4 Nov 2014 17:28:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 250F41B5; Tue, 4 Nov 2014 17:28:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sA4HSMWf099102; Tue, 4 Nov 2014 17:28:22 GMT (envelope-from melifaro@FreeBSD.org) Received: (from melifaro@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sA4HSET4099060; Tue, 4 Nov 2014 17:28:14 GMT (envelope-from melifaro@FreeBSD.org) Message-Id: <201411041728.sA4HSET4099060@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: melifaro set sender to melifaro@FreeBSD.org using -f From: "Alexander V. Chernikov" Date: Tue, 4 Nov 2014 17:28:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r274096 - in projects/routing/sys: fs/nfs net netgraph/netflow netinet netinet6 netpfil/ipfw X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2014 17:28:22 -0000 Author: melifaro Date: Tue Nov 4 17:28:13 2014 New Revision: 274096 URL: https://svnweb.freebsd.org/changeset/base/274096 Log: Hide 'struct rtentry' and all its macro inside new header: net/route_internal.h The goal is to make its opaque for all code except route/rtsock and proto domain _rmx. Added: projects/routing/sys/net/route_internal.h (contents, props changed) Modified: projects/routing/sys/fs/nfs/nfsport.h projects/routing/sys/net/if.c projects/routing/sys/net/if_disc.c projects/routing/sys/net/if_faith.c projects/routing/sys/net/if_gre.c projects/routing/sys/net/if_loop.c projects/routing/sys/net/if_stf.c projects/routing/sys/net/radix_mpath.c projects/routing/sys/net/route.c projects/routing/sys/net/route.h projects/routing/sys/net/rt_nhops.c projects/routing/sys/net/rtsock.c projects/routing/sys/netgraph/netflow/netflow.c projects/routing/sys/netinet/if_ether.c projects/routing/sys/netinet/in.c projects/routing/sys/netinet/in_gif.c projects/routing/sys/netinet/in_rmx.c projects/routing/sys/netinet/sctp_os_bsd.h projects/routing/sys/netinet6/icmp6.c projects/routing/sys/netinet6/in6.c projects/routing/sys/netinet6/in6_gif.c projects/routing/sys/netinet6/in6_ifattach.c projects/routing/sys/netinet6/in6_rmx.c projects/routing/sys/netinet6/ip6_forward.c projects/routing/sys/netinet6/ip6_input.c projects/routing/sys/netinet6/nd6.c projects/routing/sys/netinet6/nd6_nbr.c projects/routing/sys/netinet6/nd6_rtr.c projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c Modified: projects/routing/sys/fs/nfs/nfsport.h ============================================================================== --- projects/routing/sys/fs/nfs/nfsport.h Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/fs/nfs/nfsport.h Tue Nov 4 17:28:13 2014 (r274096) @@ -82,6 +82,7 @@ #include #include #include +#include #include #include #include Modified: projects/routing/sys/net/if.c ============================================================================== --- projects/routing/sys/net/if.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if.c Tue Nov 4 17:28:13 2014 (r274096) @@ -75,6 +75,7 @@ #include #include #include +#include #include #if defined(INET) || defined(INET6) Modified: projects/routing/sys/net/if_disc.c ============================================================================== --- projects/routing/sys/net/if_disc.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if_disc.c Tue Nov 4 17:28:13 2014 (r274096) @@ -49,6 +49,7 @@ #include #include #include +#include #include #include Modified: projects/routing/sys/net/if_faith.c ============================================================================== --- projects/routing/sys/net/if_faith.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if_faith.c Tue Nov 4 17:28:13 2014 (r274096) @@ -61,6 +61,7 @@ #include #include #include +#include #include #include Modified: projects/routing/sys/net/if_gre.c ============================================================================== --- projects/routing/sys/net/if_gre.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if_gre.c Tue Nov 4 17:28:13 2014 (r274096) @@ -65,6 +65,7 @@ #include #include #include +#include #include #ifdef INET Modified: projects/routing/sys/net/if_loop.c ============================================================================== --- projects/routing/sys/net/if_loop.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if_loop.c Tue Nov 4 17:28:13 2014 (r274096) @@ -54,6 +54,7 @@ #include #include #include +#include #include #include Modified: projects/routing/sys/net/if_stf.c ============================================================================== --- projects/routing/sys/net/if_stf.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/if_stf.c Tue Nov 4 17:28:13 2014 (r274096) @@ -97,6 +97,7 @@ #include #include #include +#include #include #include #include Modified: projects/routing/sys/net/radix_mpath.c ============================================================================== --- projects/routing/sys/net/radix_mpath.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/radix_mpath.c Tue Nov 4 17:28:13 2014 (r274096) @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/net/route.c ============================================================================== --- projects/routing/sys/net/route.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/route.c Tue Nov 4 17:28:13 2014 (r274096) @@ -58,6 +58,7 @@ #include #include #include +#include #include #include Modified: projects/routing/sys/net/route.h ============================================================================== --- projects/routing/sys/net/route.h Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/route.h Tue Nov 4 17:28:13 2014 (r274096) @@ -107,7 +107,9 @@ VNET_DECLARE(u_int, rt_add_addr_allfibs) #endif #endif -#if defined(_KERNEL) || defined(_WANT_RTENTRY) +struct rtentry; +#if !defined(_KERNEL) || defined(_WANT_RTENTRY) +/* This structure is kept for compatibility reasons only */ struct rtentry { struct radix_node rt_nodes[2]; /* tree glue, and other values */ /* @@ -126,11 +128,10 @@ struct rtentry { u_long rt_mtu; /* MTU for this path */ u_long rt_weight; /* absolute weight */ u_long rt_expire; /* lifetime for route, e.g. redirect */ -#define rt_endzero rt_pksent - counter_u64_t rt_pksent; /* packets sent using this route */ +#define rt_endzero rt_mtx struct mtx rt_mtx; /* mutex for routing entry */ }; -#endif /* _KERNEL || _WANT_RTENTRY */ +#endif /* !_KERNEL || _WANT_RTENTRY */ #define RTF_UP 0x1 /* route usable */ #define RTF_GATEWAY 0x2 /* destination is a gateway */ @@ -291,59 +292,6 @@ struct rt_addrinfo { #define RT_LINK_IS_UP(ifp) (!((ifp)->if_capabilities & IFCAP_LINKSTATE) \ || (ifp)->if_link_state == LINK_STATE_UP) -#define RT_LOCK_INIT(_rt) \ - mtx_init(&(_rt)->rt_mtx, "rtentry", NULL, MTX_DEF | MTX_DUPOK) -#define RT_LOCK(_rt) mtx_lock(&(_rt)->rt_mtx) -#define RT_UNLOCK(_rt) mtx_unlock(&(_rt)->rt_mtx) -#define RT_LOCK_DESTROY(_rt) mtx_destroy(&(_rt)->rt_mtx) -#define RT_LOCK_ASSERT(_rt) mtx_assert(&(_rt)->rt_mtx, MA_OWNED) -#define RT_UNLOCK_COND(_rt) do { \ - if (mtx_owned(&(_rt)->rt_mtx)) \ - mtx_unlock(&(_rt)->rt_mtx); \ -} while (0) - -#define RT_ADDREF(_rt) do { \ - RT_LOCK_ASSERT(_rt); \ - KASSERT((_rt)->rt_refcnt >= 0, \ - ("negative refcnt %d", (_rt)->rt_refcnt)); \ - (_rt)->rt_refcnt++; \ -} while (0) - -#define RT_REMREF(_rt) do { \ - RT_LOCK_ASSERT(_rt); \ - KASSERT((_rt)->rt_refcnt > 0, \ - ("bogus refcnt %d", (_rt)->rt_refcnt)); \ - (_rt)->rt_refcnt--; \ -} while (0) - -#define RTFREE_LOCKED(_rt) do { \ - if ((_rt)->rt_refcnt <= 1) \ - rtfree(_rt); \ - else { \ - RT_REMREF(_rt); \ - RT_UNLOCK(_rt); \ - } \ - /* guard against invalid refs */ \ - _rt = 0; \ -} while (0) - -#define RTFREE(_rt) do { \ - RT_LOCK(_rt); \ - RTFREE_LOCKED(_rt); \ -} while (0) - -#define RO_RTFREE(_ro) do { \ - if ((_ro)->ro_rt) { \ - if ((_ro)->ro_flags & RT_NORTREF) { \ - (_ro)->ro_flags &= ~RT_NORTREF; \ - (_ro)->ro_rt = NULL; \ - } else { \ - RT_LOCK((_ro)->ro_rt); \ - RTFREE_LOCKED((_ro)->ro_rt); \ - } \ - } \ -} while (0) - struct radix_node_head *rt_tables_get_rnh(int, int); struct ifmultiaddr; Added: projects/routing/sys/net/route_internal.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/routing/sys/net/route_internal.h Tue Nov 4 17:28:13 2014 (r274096) @@ -0,0 +1,113 @@ +/*- + * Copyright (c) 2014 + * Alexander V. Chernikov + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _NET_ROUTE_INTERNAL_H_ +#define _NET_ROUTE_INTERNAL_H_ + +struct rtentry { + struct radix_node rt_nodes[2]; /* tree glue, and other values */ + /* + * XXX struct rtentry must begin with a struct radix_node (or two!) + * because the code does some casts of a 'struct radix_node *' + * to a 'struct rtentry *' + */ +#define rt_key(r) (*((struct sockaddr **)(&(r)->rt_nodes->rn_key))) +#define rt_mask(r) (*((struct sockaddr **)(&(r)->rt_nodes->rn_mask))) + struct sockaddr *rt_gateway; /* value */ + struct ifnet *rt_ifp; /* the answer: interface to use */ + struct ifaddr *rt_ifa; /* the answer: interface address to use */ + int rt_flags; /* up/down?, host/net */ + int rt_refcnt; /* # held references */ + u_int rt_fibnum; /* which FIB */ + u_long rt_mtu; /* MTU for this path */ + u_long rt_weight; /* absolute weight */ + u_long rt_expire; /* lifetime for route, e.g. redirect */ +#define rt_endzero rt_pksent + counter_u64_t rt_pksent; /* packets sent using this route */ + struct mtx rt_mtx; /* mutex for routing entry */ +}; + +#define RT_LOCK_INIT(_rt) \ + mtx_init(&(_rt)->rt_mtx, "rtentry", NULL, MTX_DEF | MTX_DUPOK) +#define RT_LOCK(_rt) mtx_lock(&(_rt)->rt_mtx) +#define RT_UNLOCK(_rt) mtx_unlock(&(_rt)->rt_mtx) +#define RT_LOCK_DESTROY(_rt) mtx_destroy(&(_rt)->rt_mtx) +#define RT_LOCK_ASSERT(_rt) mtx_assert(&(_rt)->rt_mtx, MA_OWNED) +#define RT_UNLOCK_COND(_rt) do { \ + if (mtx_owned(&(_rt)->rt_mtx)) \ + mtx_unlock(&(_rt)->rt_mtx); \ +} while (0) + +#define RT_ADDREF(_rt) do { \ + RT_LOCK_ASSERT(_rt); \ + KASSERT((_rt)->rt_refcnt >= 0, \ + ("negative refcnt %d", (_rt)->rt_refcnt)); \ + (_rt)->rt_refcnt++; \ +} while (0) + +#define RT_REMREF(_rt) do { \ + RT_LOCK_ASSERT(_rt); \ + KASSERT((_rt)->rt_refcnt > 0, \ + ("bogus refcnt %d", (_rt)->rt_refcnt)); \ + (_rt)->rt_refcnt--; \ +} while (0) + +#define RTFREE_LOCKED(_rt) do { \ + if ((_rt)->rt_refcnt <= 1) \ + rtfree(_rt); \ + else { \ + RT_REMREF(_rt); \ + RT_UNLOCK(_rt); \ + } \ + /* guard against invalid refs */ \ + _rt = 0; \ +} while (0) + +#define RTFREE(_rt) do { \ + RT_LOCK(_rt); \ + RTFREE_LOCKED(_rt); \ +} while (0) + +#define RO_RTFREE(_ro) do { \ + if ((_ro)->ro_rt) { \ + if ((_ro)->ro_flags & RT_NORTREF) { \ + (_ro)->ro_flags &= ~RT_NORTREF; \ + (_ro)->ro_rt = NULL; \ + } else { \ + RT_LOCK((_ro)->ro_rt); \ + RTFREE_LOCKED((_ro)->ro_rt); \ + } \ + } \ +} while (0) + + + +#endif + + Modified: projects/routing/sys/net/rt_nhops.c ============================================================================== --- projects/routing/sys/net/rt_nhops.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/rt_nhops.c Tue Nov 4 17:28:13 2014 (r274096) @@ -55,6 +55,7 @@ #include #include #include +#include #include #ifdef RADIX_MPATH Modified: projects/routing/sys/net/rtsock.c ============================================================================== --- projects/routing/sys/net/rtsock.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/net/rtsock.c Tue Nov 4 17:28:13 2014 (r274096) @@ -59,6 +59,7 @@ #include #include #include +#include #include #include Modified: projects/routing/sys/netgraph/netflow/netflow.c ============================================================================== --- projects/routing/sys/netgraph/netflow/netflow.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netgraph/netflow/netflow.c Tue Nov 4 17:28:13 2014 (r274096) @@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include Modified: projects/routing/sys/netinet/if_ether.c ============================================================================== --- projects/routing/sys/netinet/if_ether.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet/if_ether.c Tue Nov 4 17:28:13 2014 (r274096) @@ -59,6 +59,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet/in.c ============================================================================== --- projects/routing/sys/netinet/in.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet/in.c Tue Nov 4 17:28:13 2014 (r274096) @@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet/in_gif.c ============================================================================== --- projects/routing/sys/netinet/in_gif.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet/in_gif.c Tue Nov 4 17:28:13 2014 (r274096) @@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet/in_rmx.c ============================================================================== --- projects/routing/sys/netinet/in_rmx.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet/in_rmx.c Tue Nov 4 17:28:13 2014 (r274096) @@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet/sctp_os_bsd.h ============================================================================== --- projects/routing/sys/netinet/sctp_os_bsd.h Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet/sctp_os_bsd.h Tue Nov 4 17:28:13 2014 (r274096) @@ -71,6 +71,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/icmp6.c ============================================================================== --- projects/routing/sys/netinet6/icmp6.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/icmp6.c Tue Nov 4 17:28:13 2014 (r274096) @@ -90,6 +90,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/in6.c ============================================================================== --- projects/routing/sys/netinet6/in6.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/in6.c Tue Nov 4 17:28:13 2014 (r274096) @@ -86,6 +86,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/in6_gif.c ============================================================================== --- projects/routing/sys/netinet6/in6_gif.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/in6_gif.c Tue Nov 4 17:28:13 2014 (r274096) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/in6_ifattach.c ============================================================================== --- projects/routing/sys/netinet6/in6_ifattach.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/in6_ifattach.c Tue Nov 4 17:28:13 2014 (r274096) @@ -48,6 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/in6_rmx.c ============================================================================== --- projects/routing/sys/netinet6/in6_rmx.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/in6_rmx.c Tue Nov 4 17:28:13 2014 (r274096) @@ -78,6 +78,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/ip6_forward.c ============================================================================== --- projects/routing/sys/netinet6/ip6_forward.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/ip6_forward.c Tue Nov 4 17:28:13 2014 (r274096) @@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/ip6_input.c ============================================================================== --- projects/routing/sys/netinet6/ip6_input.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/ip6_input.c Tue Nov 4 17:28:13 2014 (r274096) @@ -89,6 +89,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include Modified: projects/routing/sys/netinet6/nd6.c ============================================================================== --- projects/routing/sys/netinet6/nd6.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/nd6.c Tue Nov 4 17:28:13 2014 (r274096) @@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netinet6/nd6_nbr.c ============================================================================== --- projects/routing/sys/netinet6/nd6_nbr.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/nd6_nbr.c Tue Nov 4 17:28:13 2014 (r274096) @@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #ifdef RADIX_MPATH #include #endif Modified: projects/routing/sys/netinet6/nd6_rtr.c ============================================================================== --- projects/routing/sys/netinet6/nd6_rtr.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netinet6/nd6_rtr.c Tue Nov 4 17:28:13 2014 (r274096) @@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include Modified: projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c ============================================================================== --- projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c Tue Nov 4 17:24:13 2014 (r274095) +++ projects/routing/sys/netpfil/ipfw/ip_fw_table_algo.c Tue Nov 4 17:28:13 2014 (r274096) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include /* ip_fw.h requires IFNAMSIZ */ #include #include +#include #include #include /* struct ipfw_rule_ref */