in_pcb.h (194739) | in_pcb.h (195699) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1990, 1993 3 * The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)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. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 |
31 * $FreeBSD: head/sys/netinet/in_pcb.h 194739 2009-06-23 17:03:45Z bz $ | 31 * $FreeBSD: head/sys/netinet/in_pcb.h 195699 2009-07-14 22:48:30Z rwatson $ |
32 */ 33 34#ifndef _NETINET_IN_PCB_H_ 35#define _NETINET_IN_PCB_H_ 36 37#include <sys/queue.h> 38#include <sys/_lock.h> 39#include <sys/_mutex.h> 40#include <sys/_rwlock.h> 41 42#ifdef _KERNEL 43#include <sys/rwlock.h> | 32 */ 33 34#ifndef _NETINET_IN_PCB_H_ 35#define _NETINET_IN_PCB_H_ 36 37#include <sys/queue.h> 38#include <sys/_lock.h> 39#include <sys/_mutex.h> 40#include <sys/_rwlock.h> 41 42#ifdef _KERNEL 43#include <sys/rwlock.h> |
44#include <net/vnet.h> |
|
44#endif 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 */ 48struct inpcbpolicy; 49 50/* 51 * struct inpcb is the common protocol control block structure used in most --- 393 unchanged lines hidden (view full) --- 445#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb) 446#define sotoin6pcb(so) sotoinpcb(so) /* for KAME src sync over BSD*'s */ 447 448#define INP_SOCKAF(so) so->so_proto->pr_domain->dom_family 449 450#define INP_CHECK_SOCKAF(so, af) (INP_SOCKAF(so) == af) 451 452#ifdef _KERNEL | 45#endif 46 47#define in6pcb inpcb /* for KAME src sync over BSD*'s */ 48#define in6p_sp inp_sp /* for KAME src sync over BSD*'s */ 49struct inpcbpolicy; 50 51/* 52 * struct inpcb is the common protocol control block structure used in most --- 393 unchanged lines hidden (view full) --- 446#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb) 447#define sotoin6pcb(so) sotoinpcb(so) /* for KAME src sync over BSD*'s */ 448 449#define INP_SOCKAF(so) so->so_proto->pr_domain->dom_family 450 451#define INP_CHECK_SOCKAF(so, af) (INP_SOCKAF(so) == af) 452 453#ifdef _KERNEL |
453#ifdef VIMAGE_GLOBALS 454extern int ipport_reservedhigh; 455extern int ipport_reservedlow; 456extern int ipport_lowfirstauto; 457extern int ipport_lowlastauto; 458extern int ipport_firstauto; 459extern int ipport_lastauto; 460extern int ipport_hifirstauto; 461extern int ipport_hilastauto; 462extern int ipport_randomized; 463extern int ipport_randomcps; 464extern int ipport_randomtime; 465extern int ipport_stoprandom; 466extern int ipport_tcpallocs; 467#endif | 454VNET_DECLARE(int, ipport_reservedhigh); 455VNET_DECLARE(int, ipport_reservedlow); 456VNET_DECLARE(int, ipport_lowfirstauto); 457VNET_DECLARE(int, ipport_lowlastauto); 458VNET_DECLARE(int, ipport_firstauto); 459VNET_DECLARE(int, ipport_lastauto); 460VNET_DECLARE(int, ipport_hifirstauto); 461VNET_DECLARE(int, ipport_hilastauto); 462VNET_DECLARE(int, ipport_randomized); 463VNET_DECLARE(int, ipport_randomcps); 464VNET_DECLARE(int, ipport_randomtime); 465VNET_DECLARE(int, ipport_stoprandom); 466VNET_DECLARE(int, ipport_tcpallocs); 467 468#define V_ipport_reservedhigh VNET_GET(ipport_reservedhigh) 469#define V_ipport_reservedlow VNET_GET(ipport_reservedlow) 470#define V_ipport_lowfirstauto VNET_GET(ipport_lowfirstauto) 471#define V_ipport_lowlastauto VNET_GET(ipport_lowlastauto) 472#define V_ipport_firstauto VNET_GET(ipport_firstauto) 473#define V_ipport_lastauto VNET_GET(ipport_lastauto) 474#define V_ipport_hifirstauto VNET_GET(ipport_hifirstauto) 475#define V_ipport_hilastauto VNET_GET(ipport_hilastauto) 476#define V_ipport_randomized VNET_GET(ipport_randomized) 477#define V_ipport_randomcps VNET_GET(ipport_randomcps) 478#define V_ipport_randomtime VNET_GET(ipport_randomtime) 479#define V_ipport_stoprandom VNET_GET(ipport_stoprandom) 480#define V_ipport_tcpallocs VNET_GET(ipport_tcpallocs) 481 |
468extern struct callout ipport_tick_callout; 469 470void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *); 471int in_pcballoc(struct socket *, struct inpcbinfo *); 472int in_pcbbind(struct inpcb *, struct sockaddr *, struct ucred *); 473int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *, 474 u_short *, struct ucred *); 475int in_pcbconnect(struct inpcb *, struct sockaddr *, struct ucred *); --- 29 unchanged lines hidden --- | 482extern struct callout ipport_tick_callout; 483 484void in_pcbpurgeif0(struct inpcbinfo *, struct ifnet *); 485int in_pcballoc(struct socket *, struct inpcbinfo *); 486int in_pcbbind(struct inpcb *, struct sockaddr *, struct ucred *); 487int in_pcbbind_setup(struct inpcb *, struct sockaddr *, in_addr_t *, 488 u_short *, struct ucred *); 489int in_pcbconnect(struct inpcb *, struct sockaddr *, struct ucred *); --- 29 unchanged lines hidden --- |