ip_divert.c (195699) | ip_divert.c (195727) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/netinet/ip_divert.c 195699 2009-07-14 22:48:30Z rwatson $"); | 31__FBSDID("$FreeBSD: head/sys/netinet/ip_divert.c 195727 2009-07-16 21:13:04Z rwatson $"); |
32 33#if !defined(KLD_MODULE) 34#include "opt_inet.h" 35#include "opt_ipfw.h" 36#include "opt_sctp.h" 37#ifndef INET 38#error "IPDIVERT requires INET." 39#endif --- 74 unchanged lines hidden (view full) --- 114 * written in the cookie (so, tagging a packet with a cookie of 0 115 * will cause it to be effectively considered as a standard packet). 116 */ 117 118/* Internal variables. */ 119static VNET_DEFINE(struct inpcbhead, divcb); 120static VNET_DEFINE(struct inpcbinfo, divcbinfo); 121 | 32 33#if !defined(KLD_MODULE) 34#include "opt_inet.h" 35#include "opt_ipfw.h" 36#include "opt_sctp.h" 37#ifndef INET 38#error "IPDIVERT requires INET." 39#endif --- 74 unchanged lines hidden (view full) --- 114 * written in the cookie (so, tagging a packet with a cookie of 0 115 * will cause it to be effectively considered as a standard packet). 116 */ 117 118/* Internal variables. */ 119static VNET_DEFINE(struct inpcbhead, divcb); 120static VNET_DEFINE(struct inpcbinfo, divcbinfo); 121 |
122#define V_divcb VNET_GET(divcb) 123#define V_divcbinfo VNET_GET(divcbinfo) | 122#define V_divcb VNET(divcb) 123#define V_divcbinfo VNET(divcbinfo) |
124 125static u_long div_sendspace = DIVSNDQ; /* XXX sysctl ? */ 126static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */ 127 128/* 129 * Initialize divert connection block queue. 130 */ 131static void --- 648 unchanged lines hidden --- | 124 125static u_long div_sendspace = DIVSNDQ; /* XXX sysctl ? */ 126static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */ 127 128/* 129 * Initialize divert connection block queue. 130 */ 131static void --- 648 unchanged lines hidden --- |