ip_fw2.c (222582) | ip_fw2.c (222748) |
---|---|
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: head/sys/netinet/ipfw/ip_fw2.c 222582 2011-06-01 19:44:52Z ae $"); | 27__FBSDID("$FreeBSD: head/sys/netinet/ipfw/ip_fw2.c 222748 2011-06-06 12:55:02Z rwatson $"); |
28 29/* 30 * The FreeBSD IP packet firewall, main file 31 */ 32 33#if !defined(KLD_MODULE) 34#include "opt_ipfw.h" 35#include "opt_ipdivert.h" --- 651 unchanged lines hidden (view full) --- 687 } else if (proto == IPPROTO_UDP) { 688 lookupflags = INPLOOKUP_WILDCARD; 689 pi = &V_udbinfo; 690 } else 691 return 0; 692 lookupflags |= INPLOOKUP_RLOCKPCB; 693 match = 0; 694 if (*ugid_lookupp == 0) { | 28 29/* 30 * The FreeBSD IP packet firewall, main file 31 */ 32 33#if !defined(KLD_MODULE) 34#include "opt_ipfw.h" 35#include "opt_ipdivert.h" --- 651 unchanged lines hidden (view full) --- 687 } else if (proto == IPPROTO_UDP) { 688 lookupflags = INPLOOKUP_WILDCARD; 689 pi = &V_udbinfo; 690 } else 691 return 0; 692 lookupflags |= INPLOOKUP_RLOCKPCB; 693 match = 0; 694 if (*ugid_lookupp == 0) { |
695 /* 696 * XXXRW: If we had the mbuf here, could use 697 * in_pcblookup_mbuf(). 698 */ |
|
695 pcb = (oif) ? 696 in_pcblookup(pi, 697 dst_ip, htons(dst_port), 698 src_ip, htons(src_port), 699 lookupflags, oif) : 700 in_pcblookup(pi, 701 src_ip, htons(src_port), 702 dst_ip, htons(dst_port), --- 1857 unchanged lines hidden --- | 699 pcb = (oif) ? 700 in_pcblookup(pi, 701 dst_ip, htons(dst_port), 702 src_ip, htons(src_port), 703 lookupflags, oif) : 704 in_pcblookup(pi, 705 src_ip, htons(src_port), 706 dst_ip, htons(dst_port), --- 1857 unchanged lines hidden --- |