ip_fw2.c (316605) | ip_fw2.c (317042) |
---|---|
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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> | 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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: stable/11/sys/netpfil/ipfw/ip_fw2.c 316605 2017-04-07 10:45:28Z ae $"); | 27__FBSDID("$FreeBSD: stable/11/sys/netpfil/ipfw/ip_fw2.c 317042 2017-04-17 09:34:09Z ae $"); |
28 29/* 30 * The FreeBSD IP packet firewall, main file 31 */ 32 33#include "opt_ipfw.h" 34#include "opt_ipdivert.h" 35#include "opt_inet.h" --- 951 unchanged lines hidden (view full) --- 987 int is_ipv6 = 0; 988 uint8_t icmp6_type = 0; 989 uint16_t ext_hd = 0; /* bits vector for extension header filtering */ 990 /* end of ipv6 variables */ 991 992 int is_ipv4 = 0; 993 994 int done = 0; /* flag to exit the outer loop */ | 28 29/* 30 * The FreeBSD IP packet firewall, main file 31 */ 32 33#include "opt_ipfw.h" 34#include "opt_ipdivert.h" 35#include "opt_inet.h" --- 951 unchanged lines hidden (view full) --- 987 int is_ipv6 = 0; 988 uint8_t icmp6_type = 0; 989 uint16_t ext_hd = 0; /* bits vector for extension header filtering */ 990 /* end of ipv6 variables */ 991 992 int is_ipv4 = 0; 993 994 int done = 0; /* flag to exit the outer loop */ |
995 IPFW_RLOCK_TRACKER; | |
996 997 if (m->m_flags & M_SKIP_FIREWALL || (! V_ipfw_vnet_ready)) 998 return (IP_FW_PASS); /* accept */ 999 1000 dst_ip.s_addr = 0; /* make sure it is initialized */ 1001 src_ip.s_addr = 0; /* make sure it is initialized */ 1002 pktlen = m->m_pkthdr.len; 1003 args->f_id.fib = M_GETFIB(m); /* note mbuf not altered) */ --- 2000 unchanged lines hidden --- | 995 996 if (m->m_flags & M_SKIP_FIREWALL || (! V_ipfw_vnet_ready)) 997 return (IP_FW_PASS); /* accept */ 998 999 dst_ip.s_addr = 0; /* make sure it is initialized */ 1000 src_ip.s_addr = 0; /* make sure it is initialized */ 1001 pktlen = m->m_pkthdr.len; 1002 args->f_id.fib = M_GETFIB(m); /* note mbuf not altered) */ --- 2000 unchanged lines hidden --- |