Deleted Added
full compact
sctp_pcb.h (168124) sctp_pcb.h (168299)
1/*-
2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

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

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_pcb.h,v 1.21 2005/07/16 01:18:47 suz Exp $ */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2007, Cisco Systems, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * a) Redistributions of source code must retain the above copyright notice,
8 * this list of conditions and the following disclaimer.

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

26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
28 * THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31/* $KAME: sctp_pcb.h,v 1.21 2005/07/16 01:18:47 suz Exp $ */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 168124 2007-03-31 11:47:30Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 168299 2007-04-03 11:15:32Z rrs $");
35
36#ifndef __sctp_pcb_h__
37#define __sctp_pcb_h__
38
39#include <netinet/sctp_os.h>
40#include <netinet/sctp.h>
41#include <netinet/sctp_constants.h>
42

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

48LIST_HEAD(sctp_ifnlist, sctp_ifn);
49LIST_HEAD(sctp_ifalist, sctp_ifa);
50TAILQ_HEAD(sctp_readhead, sctp_queued_to_read);
51TAILQ_HEAD(sctp_streamhead, sctp_stream_queue_pending);
52
53#include <netinet/sctp_structs.h>
54#include <netinet/sctp_uio.h>
55#include <netinet/sctp_auth.h>
35
36#ifndef __sctp_pcb_h__
37#define __sctp_pcb_h__
38
39#include <netinet/sctp_os.h>
40#include <netinet/sctp.h>
41#include <netinet/sctp_constants.h>
42

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

48LIST_HEAD(sctp_ifnlist, sctp_ifn);
49LIST_HEAD(sctp_ifalist, sctp_ifa);
50TAILQ_HEAD(sctp_readhead, sctp_queued_to_read);
51TAILQ_HEAD(sctp_streamhead, sctp_stream_queue_pending);
52
53#include <netinet/sctp_structs.h>
54#include <netinet/sctp_uio.h>
55#include <netinet/sctp_auth.h>
56#include <netinet/sctp_bsd_addr.h>
57
58/*
59 * PCB flags (in sctp_flags bitmask)
60 */
61#define SCTP_PCB_FLAGS_UDPTYPE 0x00000001
62#define SCTP_PCB_FLAGS_TCPTYPE 0x00000002
63#define SCTP_PCB_FLAGS_BOUNDALL 0x00000004
64#define SCTP_PCB_FLAGS_ACCEPTING 0x00000008

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

153 * is for V6. */
154 union sctp_sockstore address;
155 uint32_t refcount; /* number of folks refering to this */
156 uint32_t flags;
157 uint32_t localifa_flags;
158 uint8_t src_is_loop;
159 uint8_t src_is_priv;
160 uint8_t src_is_glob;
56
57/*
58 * PCB flags (in sctp_flags bitmask)
59 */
60#define SCTP_PCB_FLAGS_UDPTYPE 0x00000001
61#define SCTP_PCB_FLAGS_TCPTYPE 0x00000002
62#define SCTP_PCB_FLAGS_BOUNDALL 0x00000004
63#define SCTP_PCB_FLAGS_ACCEPTING 0x00000008

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

152 * is for V6. */
153 union sctp_sockstore address;
154 uint32_t refcount; /* number of folks refering to this */
155 uint32_t flags;
156 uint32_t localifa_flags;
157 uint8_t src_is_loop;
158 uint8_t src_is_priv;
159 uint8_t src_is_glob;
161 uint8_t resv;
160 uint8_t in_ifa_list;
162};
163
164struct sctp_laddr {
165 LIST_ENTRY(sctp_laddr) sctp_nxt_addr; /* next in list */
166 struct sctp_ifa *ifa;
167 uint32_t action; /* Used during asconf and adding if no-zero
168 * src-addr selection will not consider this
169 * address. */

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

472struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t);
473
474int sctp_inpcb_bind(struct socket *, struct sockaddr *, struct thread *);
475
476
477struct sctp_tcb *
478sctp_findassociation_addr(struct mbuf *, int, int,
479 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
161};
162
163struct sctp_laddr {
164 LIST_ENTRY(sctp_laddr) sctp_nxt_addr; /* next in list */
165 struct sctp_ifa *ifa;
166 uint32_t action; /* Used during asconf and adding if no-zero
167 * src-addr selection will not consider this
168 * address. */

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

471struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t);
472
473int sctp_inpcb_bind(struct socket *, struct sockaddr *, struct thread *);
474
475
476struct sctp_tcb *
477sctp_findassociation_addr(struct mbuf *, int, int,
478 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
480 struct sctp_nets **);
479 struct sctp_nets **, uint32_t vrf_id);
481
482struct sctp_tcb *
483sctp_findassociation_addr_sa(struct sockaddr *,
484 struct sockaddr *, struct sctp_inpcb **, struct sctp_nets **, int, uint32_t);
485
486void
487sctp_move_pcb_and_assoc(struct sctp_inpcb *, struct sctp_inpcb *,
488 struct sctp_tcb *);

--- 89 unchanged lines hidden ---
480
481struct sctp_tcb *
482sctp_findassociation_addr_sa(struct sockaddr *,
483 struct sockaddr *, struct sctp_inpcb **, struct sctp_nets **, int, uint32_t);
484
485void
486sctp_move_pcb_and_assoc(struct sctp_inpcb *, struct sctp_inpcb *,
487 struct sctp_tcb *);

--- 89 unchanged lines hidden ---