ip_fw_private.h (234946) | ip_fw_private.h (240099) |
---|---|
1/*- 2 * Copyright (c) 2002-2009 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2002-2009 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/netinet/ipfw/ip_fw_private.h 234946 2012-05-03 08:56:43Z melifaro $ | 25 * $FreeBSD: head/sys/netinet/ipfw/ip_fw_private.h 240099 2012-09-04 19:43:26Z melifaro $ |
26 */ 27 28#ifndef _IPFW2_PRIVATE_H 29#define _IPFW2_PRIVATE_H 30 31/* 32 * Internal constants and data structures used by ipfw components 33 * and not meant to be exported outside the kernel. --- 231 unchanged lines hidden (view full) --- 265 266/* In ip_fw_sockopt.c */ 267int ipfw_find_rule(struct ip_fw_chain *chain, uint32_t key, uint32_t id); 268int ipfw_add_rule(struct ip_fw_chain *chain, struct ip_fw *input_rule); 269int ipfw_ctl(struct sockopt *sopt); 270int ipfw_chk(struct ip_fw_args *args); 271void ipfw_reap_rules(struct ip_fw *head); 272 | 26 */ 27 28#ifndef _IPFW2_PRIVATE_H 29#define _IPFW2_PRIVATE_H 30 31/* 32 * Internal constants and data structures used by ipfw components 33 * and not meant to be exported outside the kernel. --- 231 unchanged lines hidden (view full) --- 265 266/* In ip_fw_sockopt.c */ 267int ipfw_find_rule(struct ip_fw_chain *chain, uint32_t key, uint32_t id); 268int ipfw_add_rule(struct ip_fw_chain *chain, struct ip_fw *input_rule); 269int ipfw_ctl(struct sockopt *sopt); 270int ipfw_chk(struct ip_fw_args *args); 271void ipfw_reap_rules(struct ip_fw *head); 272 |
273/* In ip_fw_pfil */ 274int ipfw_check_hook(void *arg, struct mbuf **m0, struct ifnet *ifp, int dir, 275 struct inpcb *inp); 276 | |
277/* In ip_fw_table.c */ 278struct radix_node; 279int ipfw_lookup_table(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr, 280 uint32_t *val); 281int ipfw_lookup_table_extended(struct ip_fw_chain *ch, uint16_t tbl, void *paddr, 282 uint32_t *val, int type); 283int ipfw_init_tables(struct ip_fw_chain *ch); 284void ipfw_destroy_tables(struct ip_fw_chain *ch); --- 29 unchanged lines hidden --- | 273/* In ip_fw_table.c */ 274struct radix_node; 275int ipfw_lookup_table(struct ip_fw_chain *ch, uint16_t tbl, in_addr_t addr, 276 uint32_t *val); 277int ipfw_lookup_table_extended(struct ip_fw_chain *ch, uint16_t tbl, void *paddr, 278 uint32_t *val, int type); 279int ipfw_init_tables(struct ip_fw_chain *ch); 280void ipfw_destroy_tables(struct ip_fw_chain *ch); --- 29 unchanged lines hidden --- |