structs.h (ad05a7a05ede28ba6dd935d9e932264a22518b1f) structs.h (0c3f6f655487d12c7a0c16914c98c599043e88d3)
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

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

84struct sctp_ep_common;
85struct crypto_shash;
86struct sctp_stream;
87
88
89#include <net/sctp/tsnmap.h>
90#include <net/sctp/ulpevent.h>
91#include <net/sctp/ulpqueue.h>
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 *
7 * This file is part of the SCTP kernel implementation
8 *

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

84struct sctp_ep_common;
85struct crypto_shash;
86struct sctp_stream;
87
88
89#include <net/sctp/tsnmap.h>
90#include <net/sctp/ulpevent.h>
91#include <net/sctp/ulpqueue.h>
92#include <net/sctp/stream_interleave.h>
92
93/* Structures useful for managing bind/connect. */
94
95struct sctp_bind_bucket {
96 unsigned short port;
97 unsigned short fastreuse;
98 struct hlist_node node;
99 struct hlist_head owner;

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

1384 /* Fields used by RR scheduler */
1385 struct {
1386 /* List of streams scheduled */
1387 struct list_head rr_list;
1388 /* The next stream stream in line */
1389 struct sctp_stream_out_ext *rr_next;
1390 };
1391 };
93
94/* Structures useful for managing bind/connect. */
95
96struct sctp_bind_bucket {
97 unsigned short port;
98 unsigned short fastreuse;
99 struct hlist_node node;
100 struct hlist_head owner;

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

1385 /* Fields used by RR scheduler */
1386 struct {
1387 /* List of streams scheduled */
1388 struct list_head rr_list;
1389 /* The next stream stream in line */
1390 struct sctp_stream_out_ext *rr_next;
1391 };
1392 };
1393 struct sctp_stream_interleave *si;
1392};
1393
1394#define SCTP_STREAM_CLOSED 0x00
1395#define SCTP_STREAM_OPEN 0x01
1396
1394};
1395
1396#define SCTP_STREAM_CLOSED 0x00
1397#define SCTP_STREAM_OPEN 0x01
1398
1399static inline __u16 sctp_datachk_len(const struct sctp_stream *stream)
1400{
1401 return stream->si->data_chunk_len;
1402}
1403
1404static inline __u16 sctp_datahdr_len(const struct sctp_stream *stream)
1405{
1406 return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr);
1407}
1408
1397/* SCTP_GET_ASSOC_STATS counters */
1398struct sctp_priv_assoc_stats {
1399 /* Maximum observed rto in the association during subsequent
1400 * observations. Value is set to 0 if no RTO measurement took place
1401 * The transport where the max_rto was observed is returned in
1402 * obs_rto_ipaddr
1403 */
1404 struct sockaddr_storage obs_rto_ipaddr;

--- 655 unchanged lines hidden ---
1409/* SCTP_GET_ASSOC_STATS counters */
1410struct sctp_priv_assoc_stats {
1411 /* Maximum observed rto in the association during subsequent
1412 * observations. Value is set to 0 if no RTO measurement took place
1413 * The transport where the max_rto was observed is returned in
1414 * obs_rto_ipaddr
1415 */
1416 struct sockaddr_storage obs_rto_ipaddr;

--- 655 unchanged lines hidden ---