in_pcb.h (91236) | in_pcb.h (92654) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1990, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1990, 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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/netinet/in_pcb.h 91236 2002-02-25 09:41:43Z alfred $ | 34 * $FreeBSD: head/sys/netinet/in_pcb.h 92654 2002-03-19 09:11:49Z jeff $ |
35 */ 36 37#ifndef _NETINET_IN_PCB_H_ 38#define _NETINET_IN_PCB_H_ 39 40#include <sys/queue.h> 41 42#include <net/route.h> 43#include <netinet6/ipsec.h> /* for IPSEC */ | 35 */ 36 37#ifndef _NETINET_IN_PCB_H_ 38#define _NETINET_IN_PCB_H_ 39 40#include <sys/queue.h> 41 42#include <net/route.h> 43#include <netinet6/ipsec.h> /* for IPSEC */ |
44#include <vm/vm_zone.h> |
|
44 45#define in6pcb inpcb /* for KAME src sync over BSD*'s */ 46#define in6p_sp inp_sp /* for KAME src sync over BSD*'s */ 47 48/* 49 * Common structure pcb for internet protocol implementation. 50 * Here are stored pointers to local and foreign host table 51 * entries, local and foreign socket numbers, and pointers --- 184 unchanged lines hidden (view full) --- 236 struct inpcbhead *hashbase; 237 u_long hashmask; 238 struct inpcbporthead *porthashbase; 239 u_long porthashmask; 240 struct inpcbhead *listhead; 241 u_short lastport; 242 u_short lastlow; 243 u_short lasthi; | 45 46#define in6pcb inpcb /* for KAME src sync over BSD*'s */ 47#define in6p_sp inp_sp /* for KAME src sync over BSD*'s */ 48 49/* 50 * Common structure pcb for internet protocol implementation. 51 * Here are stored pointers to local and foreign host table 52 * entries, local and foreign socket numbers, and pointers --- 184 unchanged lines hidden (view full) --- 237 struct inpcbhead *hashbase; 238 u_long hashmask; 239 struct inpcbporthead *porthashbase; 240 u_long porthashmask; 241 struct inpcbhead *listhead; 242 u_short lastport; 243 u_short lastlow; 244 u_short lasthi; |
244 struct vm_zone *ipi_zone; /* zone to allocate pcbs from */ | 245 vm_zone_t ipi_zone; /* zone to allocate pcbs from */ |
245 u_int ipi_count; /* number of pcbs in this list */ 246 u_quad_t ipi_gencnt; /* current generation count */ 247}; 248 249#define INP_PCBHASH(faddr, lport, fport, mask) \ 250 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask)) 251#define INP_PCBPORTHASH(lport, mask) \ 252 (ntohs((lport)) & (mask)) --- 89 unchanged lines hidden --- | 246 u_int ipi_count; /* number of pcbs in this list */ 247 u_quad_t ipi_gencnt; /* current generation count */ 248}; 249 250#define INP_PCBHASH(faddr, lport, fport, mask) \ 251 (((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask)) 252#define INP_PCBPORTHASH(lport, mask) \ 253 (ntohs((lport)) & (mask)) --- 89 unchanged lines hidden --- |