Deleted Added
full compact
in_pcb.h (266418) in_pcb.h (268479)
1/*-
2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2010-2011 Juniper Networks, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Robert N. M. Watson under
8 * contract to Juniper Networks, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)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 * Copyright (c) 2010-2011 Juniper Networks, Inc.
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Robert N. M. Watson under
8 * contract to Juniper Networks, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)in_pcb.h 8.1 (Berkeley) 6/10/93
35 * $FreeBSD: head/sys/netinet/in_pcb.h 266418 2014-05-18 22:30:12Z adrian $
35 * $FreeBSD: head/sys/netinet/in_pcb.h 268479 2014-07-10 03:10:56Z adrian $
36 */
37
38#ifndef _NETINET_IN_PCB_H_
39#define _NETINET_IN_PCB_H_
40
41#include <sys/queue.h>
42#include <sys/_lock.h>
43#include <sys/_mutex.h>

--- 132 unchanged lines hidden (view full) ---

176 u_char inp_vflag; /* (i) IP version flag (v4/v6) */
177 u_char inp_ip_ttl; /* (i) time to live proto */
178 u_char inp_ip_p; /* (c) protocol proto */
179 u_char inp_ip_minttl; /* (i) minimum TTL or drop */
180 uint32_t inp_flowid; /* (x) flow id / queue id */
181 u_int inp_refcount; /* (i) refcount */
182 void *inp_pspare[5]; /* (x) route caching / general use */
183 uint32_t inp_flowtype; /* (x) M_HASHTYPE value */
36 */
37
38#ifndef _NETINET_IN_PCB_H_
39#define _NETINET_IN_PCB_H_
40
41#include <sys/queue.h>
42#include <sys/_lock.h>
43#include <sys/_mutex.h>

--- 132 unchanged lines hidden (view full) ---

176 u_char inp_vflag; /* (i) IP version flag (v4/v6) */
177 u_char inp_ip_ttl; /* (i) time to live proto */
178 u_char inp_ip_p; /* (c) protocol proto */
179 u_char inp_ip_minttl; /* (i) minimum TTL or drop */
180 uint32_t inp_flowid; /* (x) flow id / queue id */
181 u_int inp_refcount; /* (i) refcount */
182 void *inp_pspare[5]; /* (x) route caching / general use */
183 uint32_t inp_flowtype; /* (x) M_HASHTYPE value */
184 u_int inp_ispare[5]; /* (x) route caching / user cookie /
184 uint32_t inp_rss_listen_bucket; /* (x) overridden RSS listen bucket */
185 u_int inp_ispare[4]; /* (x) route caching / user cookie /
185 * general use */
186
187 /* Local and foreign ports, local and foreign addr. */
188 struct in_conninfo inp_inc; /* (i/p) list for PCB's local port */
189
190 /* MAC and IPSEC policy information. */
191 struct label *inp_label; /* (i) MAC label */
192 struct inpcbpolicy *inp_sp; /* (s) for IPSEC */

--- 348 unchanged lines hidden (view full) ---

541 * Flags for inp_flags2.
542 */
543#define INP_LLE_VALID 0x00000001 /* cached lle is valid */
544#define INP_RT_VALID 0x00000002 /* cached rtentry is valid */
545#define INP_PCBGROUPWILD 0x00000004 /* in pcbgroup wildcard list */
546#define INP_REUSEPORT 0x00000008 /* SO_REUSEPORT option is set */
547#define INP_FREED 0x00000010 /* inp itself is not valid */
548#define INP_REUSEADDR 0x00000020 /* SO_REUSEADDR option is set */
186 * general use */
187
188 /* Local and foreign ports, local and foreign addr. */
189 struct in_conninfo inp_inc; /* (i/p) list for PCB's local port */
190
191 /* MAC and IPSEC policy information. */
192 struct label *inp_label; /* (i) MAC label */
193 struct inpcbpolicy *inp_sp; /* (s) for IPSEC */

--- 348 unchanged lines hidden (view full) ---

542 * Flags for inp_flags2.
543 */
544#define INP_LLE_VALID 0x00000001 /* cached lle is valid */
545#define INP_RT_VALID 0x00000002 /* cached rtentry is valid */
546#define INP_PCBGROUPWILD 0x00000004 /* in pcbgroup wildcard list */
547#define INP_REUSEPORT 0x00000008 /* SO_REUSEPORT option is set */
548#define INP_FREED 0x00000010 /* inp itself is not valid */
549#define INP_REUSEADDR 0x00000020 /* SO_REUSEADDR option is set */
550#define INP_BINDMULTI 0x00000040 /* IP_BINDMULTI option is set */
551#define INP_RSS_BUCKET_SET 0x00000080 /* IP_RSS_LISTEN_BUCKET is set */
549
550/*
551 * Flags passed to in_pcblookup*() functions.
552 */
553#define INPLOOKUP_WILDCARD 0x00000001 /* Allow wildcard sockets. */
554#define INPLOOKUP_RLOCKPCB 0x00000002 /* Return inpcb read-locked. */
555#define INPLOOKUP_WLOCKPCB 0x00000004 /* Return inpcb write-locked. */
556

--- 111 unchanged lines hidden ---
552
553/*
554 * Flags passed to in_pcblookup*() functions.
555 */
556#define INPLOOKUP_WILDCARD 0x00000001 /* Allow wildcard sockets. */
557#define INPLOOKUP_RLOCKPCB 0x00000002 /* Return inpcb read-locked. */
558#define INPLOOKUP_WLOCKPCB 0x00000004 /* Return inpcb write-locked. */
559

--- 111 unchanged lines hidden ---