sctp_pcb.h (170138) | sctp_pcb.h (170181) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by 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, by 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 170138 2007-05-30 17:39:45Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 170181 2007-06-01 11:19:54Z 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 --- 31 unchanged lines hidden (view full) --- 74 LIST_ENTRY(sctp_ifn) next_bucket; 75 void *ifn_p; /* never access without appropriate lock */ 76 uint32_t ifn_mtu; 77 uint32_t ifn_type; 78 uint32_t ifn_index; /* shorthand way to look at ifn for reference */ 79 uint32_t refcount; /* number of reference held should be >= 80 * ifa_count */ 81 uint32_t ifa_count; /* IFA's we hold (in our list - ifalist) */ | 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 --- 31 unchanged lines hidden (view full) --- 74 LIST_ENTRY(sctp_ifn) next_bucket; 75 void *ifn_p; /* never access without appropriate lock */ 76 uint32_t ifn_mtu; 77 uint32_t ifn_type; 78 uint32_t ifn_index; /* shorthand way to look at ifn for reference */ 79 uint32_t refcount; /* number of reference held should be >= 80 * ifa_count */ 81 uint32_t ifa_count; /* IFA's we hold (in our list - ifalist) */ |
82 uint32_t num_v6; /* number of v6 addresses */ 83 uint32_t num_v4; /* number of v4 addresses */ 84 uint32_t registered_af; /* registered address family for i/f events */ |
|
82 char ifn_name[SCTP_IFNAMSIZ]; 83}; 84 85/* SCTP local IFA flags */ 86#define SCTP_ADDR_VALID 0x00000001 /* its up and active */ 87#define SCTP_BEING_DELETED 0x00000002 /* being deleted, when 88 * refcount = 0. Note that it 89 * is pulled from the ifn list --- 14 unchanged lines hidden (view full) --- 104 union sctp_sockstore address; 105 uint32_t refcount; /* number of folks refering to this */ 106 uint32_t flags; 107 uint32_t localifa_flags; 108 uint8_t src_is_loop; 109 uint8_t src_is_priv; 110 uint8_t src_is_glob; 111 uint8_t resv; | 85 char ifn_name[SCTP_IFNAMSIZ]; 86}; 87 88/* SCTP local IFA flags */ 89#define SCTP_ADDR_VALID 0x00000001 /* its up and active */ 90#define SCTP_BEING_DELETED 0x00000002 /* being deleted, when 91 * refcount = 0. Note that it 92 * is pulled from the ifn list --- 14 unchanged lines hidden (view full) --- 107 union sctp_sockstore address; 108 uint32_t refcount; /* number of folks refering to this */ 109 uint32_t flags; 110 uint32_t localifa_flags; 111 uint8_t src_is_loop; 112 uint8_t src_is_priv; 113 uint8_t src_is_glob; 114 uint8_t resv; |
112 | |
113}; 114 115struct sctp_laddr { 116 LIST_ENTRY(sctp_laddr) sctp_nxt_addr; /* next in list */ 117 struct sctp_ifa *ifa; 118 uint32_t action; /* Used during asconf and adding if no-zero 119 * src-addr selection will not consider this 120 * address. */ --- 155 unchanged lines hidden (view full) --- 276 /* 277 * This timer is kept running per endpoint. When it fires it will 278 * change the secret key. The default is once a hour 279 */ 280 struct sctp_timer signature_change; 281 282 /* Zero copy full buffer timer */ 283 struct sctp_timer zero_copy_timer; | 115}; 116 117struct sctp_laddr { 118 LIST_ENTRY(sctp_laddr) sctp_nxt_addr; /* next in list */ 119 struct sctp_ifa *ifa; 120 uint32_t action; /* Used during asconf and adding if no-zero 121 * src-addr selection will not consider this 122 * address. */ --- 155 unchanged lines hidden (view full) --- 278 /* 279 * This timer is kept running per endpoint. When it fires it will 280 * change the secret key. The default is once a hour 281 */ 282 struct sctp_timer signature_change; 283 284 /* Zero copy full buffer timer */ 285 struct sctp_timer zero_copy_timer; |
286 /* Zero copy app to transport (sendq) read repulse timer */ 287 struct sctp_timer zero_copy_sendq_timer; |
|
284 int def_cookie_life; 285 /* defaults to 0 */ 286 int auto_close_time; 287 uint32_t initial_sequence_debug; 288 uint32_t adaptation_layer_indicator; 289 char store_at; 290 uint8_t max_burst; 291 char current_secret_number; --- 67 unchanged lines hidden (view full) --- 359 */ 360 struct mbuf *pkt, *pkt_last; 361 struct mbuf *control; 362 struct mtx inp_mtx; 363 struct mtx inp_create_mtx; 364 struct mtx inp_rdata_mtx; 365 int32_t refcount; 366 uint32_t def_vrf_id; | 288 int def_cookie_life; 289 /* defaults to 0 */ 290 int auto_close_time; 291 uint32_t initial_sequence_debug; 292 uint32_t adaptation_layer_indicator; 293 char store_at; 294 uint8_t max_burst; 295 char current_secret_number; --- 67 unchanged lines hidden (view full) --- 363 */ 364 struct mbuf *pkt, *pkt_last; 365 struct mbuf *control; 366 struct mtx inp_mtx; 367 struct mtx inp_create_mtx; 368 struct mtx inp_rdata_mtx; 369 int32_t refcount; 370 uint32_t def_vrf_id; |
367 uint32_t def_table_id; | |
368 uint32_t total_sends; 369 uint32_t total_recvs; 370 uint32_t last_abort_code; 371 uint32_t total_nospaces; 372}; 373 374struct sctp_tcb { 375 struct socket *sctp_socket; /* back pointer to socket */ --- 172 unchanged lines hidden --- | 371 uint32_t total_sends; 372 uint32_t total_recvs; 373 uint32_t last_abort_code; 374 uint32_t total_nospaces; 375}; 376 377struct sctp_tcb { 378 struct socket *sctp_socket; /* back pointer to socket */ --- 172 unchanged lines hidden --- |