1*0f617ae4SGleb Smirnoff /*- 2*0f617ae4SGleb Smirnoff * SPDX-License-Identifier: BSD-3-Clause 3*0f617ae4SGleb Smirnoff * 4*0f617ae4SGleb Smirnoff * Copyright (c) 1982, 1986, 1990, 1993 5*0f617ae4SGleb Smirnoff * The Regents of the University of California. 6*0f617ae4SGleb Smirnoff * Copyright (c) 2010-2011 Juniper Networks, Inc. 7*0f617ae4SGleb Smirnoff * All rights reserved. 8*0f617ae4SGleb Smirnoff * 9*0f617ae4SGleb Smirnoff * Portions of this software were developed by Robert N. M. Watson under 10*0f617ae4SGleb Smirnoff * contract to Juniper Networks, Inc. 11*0f617ae4SGleb Smirnoff * 12*0f617ae4SGleb Smirnoff * Redistribution and use in source and binary forms, with or without 13*0f617ae4SGleb Smirnoff * modification, are permitted provided that the following conditions 14*0f617ae4SGleb Smirnoff * are met: 15*0f617ae4SGleb Smirnoff * 1. Redistributions of source code must retain the above copyright 16*0f617ae4SGleb Smirnoff * notice, this list of conditions and the following disclaimer. 17*0f617ae4SGleb Smirnoff * 2. Redistributions in binary form must reproduce the above copyright 18*0f617ae4SGleb Smirnoff * notice, this list of conditions and the following disclaimer in the 19*0f617ae4SGleb Smirnoff * documentation and/or other materials provided with the distribution. 20*0f617ae4SGleb Smirnoff * 3. Neither the name of the University nor the names of its contributors 21*0f617ae4SGleb Smirnoff * may be used to endorse or promote products derived from this software 22*0f617ae4SGleb Smirnoff * without specific prior written permission. 23*0f617ae4SGleb Smirnoff * 24*0f617ae4SGleb Smirnoff * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25*0f617ae4SGleb Smirnoff * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26*0f617ae4SGleb Smirnoff * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27*0f617ae4SGleb Smirnoff * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28*0f617ae4SGleb Smirnoff * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29*0f617ae4SGleb Smirnoff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30*0f617ae4SGleb Smirnoff * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31*0f617ae4SGleb Smirnoff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32*0f617ae4SGleb Smirnoff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33*0f617ae4SGleb Smirnoff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34*0f617ae4SGleb Smirnoff * SUCH DAMAGE. 35*0f617ae4SGleb Smirnoff * 36*0f617ae4SGleb Smirnoff * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93 37*0f617ae4SGleb Smirnoff * $FreeBSD$ 38*0f617ae4SGleb Smirnoff */ 39*0f617ae4SGleb Smirnoff 40*0f617ae4SGleb Smirnoff #ifndef _NETINET_IN_PCB_VAR_H_ 41*0f617ae4SGleb Smirnoff #define _NETINET_IN_PCB_VAR_H_ 42*0f617ae4SGleb Smirnoff 43*0f617ae4SGleb Smirnoff /* 44*0f617ae4SGleb Smirnoff * Definitions shared between netinet/in_pcb.c and netinet6/in6_pcb.c 45*0f617ae4SGleb Smirnoff */ 46*0f617ae4SGleb Smirnoff 47*0f617ae4SGleb Smirnoff int in_pcb_lport(struct inpcb *, struct in_addr *, u_short *, 48*0f617ae4SGleb Smirnoff struct ucred *, int); 49*0f617ae4SGleb Smirnoff int in_pcb_lport_dest(struct inpcb *inp, struct sockaddr *lsa, 50*0f617ae4SGleb Smirnoff u_short *lportp, struct sockaddr *fsa, u_short fport, 51*0f617ae4SGleb Smirnoff struct ucred *cred, int lookupflags); 52*0f617ae4SGleb Smirnoff struct inpcb * in_pcblookup_local(struct inpcbinfo *, struct in_addr, u_short, 53*0f617ae4SGleb Smirnoff int, struct ucred *); 54*0f617ae4SGleb Smirnoff 55*0f617ae4SGleb Smirnoff #endif /* !_NETINET_IN_PCB_VAR_H_ */ 56