Deleted Added
full compact
sctp_pcb.h (171440) sctp_pcb.h (171477)
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 171440 2007-07-14 09:36:28Z rrs $");
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.h 171477 2007-07-17 20:58:26Z 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

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

286 * change the secret key. The default is once a hour
287 */
288 struct sctp_timer signature_change;
289
290 /* Zero copy full buffer timer */
291 struct sctp_timer zero_copy_timer;
292 /* Zero copy app to transport (sendq) read repulse timer */
293 struct sctp_timer zero_copy_sendq_timer;
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

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

286 * change the secret key. The default is once a hour
287 */
288 struct sctp_timer signature_change;
289
290 /* Zero copy full buffer timer */
291 struct sctp_timer zero_copy_timer;
292 /* Zero copy app to transport (sendq) read repulse timer */
293 struct sctp_timer zero_copy_sendq_timer;
294 int def_cookie_life;
294 uint32_t def_cookie_life;
295 /* defaults to 0 */
296 int auto_close_time;
297 uint32_t initial_sequence_debug;
298 uint32_t adaptation_layer_indicator;
299 char store_at;
300 uint8_t max_burst;
301 char current_secret_number;
302 char last_secret_number;

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

307#endif
308
309#ifndef SCTP_ALIGNM1
310#define SCTP_ALIGNM1 (SCTP_ALIGNMENT-1)
311#endif
312
313#define sctp_lport ip_inp.inp.inp_lport
314
295 /* defaults to 0 */
296 int auto_close_time;
297 uint32_t initial_sequence_debug;
298 uint32_t adaptation_layer_indicator;
299 char store_at;
300 uint8_t max_burst;
301 char current_secret_number;
302 char last_secret_number;

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

307#endif
308
309#ifndef SCTP_ALIGNM1
310#define SCTP_ALIGNM1 (SCTP_ALIGNMENT-1)
311#endif
312
313#define sctp_lport ip_inp.inp.inp_lport
314
315struct sctp_pcbtsn_rlog {
316 uint32_t vtag;
317 uint16_t strm;
318 uint16_t seq;
319 uint16_t sz;
320 uint16_t flgs;
321};
322
323#define SCTP_READ_LOG_SIZE 135 /* we choose the number to make a pcb a page */
324
325
315struct sctp_inpcb {
316 /*-
317 * put an inpcb in front of it all, kind of a waste but we need to
318 * for compatability with all the other stuff.
319 */
320 union {
321 struct inpcb inp;
322 char align[(sizeof(struct in6pcb) + SCTP_ALIGNM1) &

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

373 struct mtx inp_create_mtx;
374 struct mtx inp_rdata_mtx;
375 int32_t refcount;
376 uint32_t def_vrf_id;
377 uint32_t total_sends;
378 uint32_t total_recvs;
379 uint32_t last_abort_code;
380 uint32_t total_nospaces;
326struct sctp_inpcb {
327 /*-
328 * put an inpcb in front of it all, kind of a waste but we need to
329 * for compatability with all the other stuff.
330 */
331 union {
332 struct inpcb inp;
333 char align[(sizeof(struct in6pcb) + SCTP_ALIGNM1) &

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

384 struct mtx inp_create_mtx;
385 struct mtx inp_rdata_mtx;
386 int32_t refcount;
387 uint32_t def_vrf_id;
388 uint32_t total_sends;
389 uint32_t total_recvs;
390 uint32_t last_abort_code;
391 uint32_t total_nospaces;
392#ifdef SCTP_ASOCLOG_OF_TSNS
393 struct sctp_pcbtsn_rlog readlog[SCTP_READ_LOG_SIZE];
394 uint32_t readlog_index;
395#endif
381};
382
383struct sctp_tcb {
384 struct socket *sctp_socket; /* back pointer to socket */
385 struct sctp_inpcb *sctp_ep; /* back pointer to ep */
386 LIST_ENTRY(sctp_tcb) sctp_tcbhash; /* next link in hash
387 * table */
388 LIST_ENTRY(sctp_tcb) sctp_tcblist; /* list of all of the

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

447
448
449
450struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *);
451
452struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t);
453
454int
396};
397
398struct sctp_tcb {
399 struct socket *sctp_socket; /* back pointer to socket */
400 struct sctp_inpcb *sctp_ep; /* back pointer to ep */
401 LIST_ENTRY(sctp_tcb) sctp_tcbhash; /* next link in hash
402 * table */
403 LIST_ENTRY(sctp_tcb) sctp_tcblist; /* list of all of the

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

462
463
464
465struct sctp_nets *sctp_findnet(struct sctp_tcb *, struct sockaddr *);
466
467struct sctp_inpcb *sctp_pcb_findep(struct sockaddr *, int, int, uint32_t);
468
469int
455sctp_inpcb_bind(struct socket *, struct sockaddr *, struct sctp_ifa *,
470sctp_inpcb_bind(struct socket *, struct sockaddr *,
456 struct thread *);
457
458struct sctp_tcb *
459sctp_findassociation_addr(struct mbuf *, int, int,
460 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
461 struct sctp_nets **, uint32_t vrf_id);
462
463struct sctp_tcb *

--- 92 unchanged lines hidden ---
471 struct thread *);
472
473struct sctp_tcb *
474sctp_findassociation_addr(struct mbuf *, int, int,
475 struct sctphdr *, struct sctp_chunkhdr *, struct sctp_inpcb **,
476 struct sctp_nets **, uint32_t vrf_id);
477
478struct sctp_tcb *

--- 92 unchanged lines hidden ---