.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* SCTP kernel implementation |
---|
2 | 3 | * (C) Copyright IBM Corp. 2001, 2004 |
---|
3 | 4 | * Copyright (c) 1999-2000 Cisco, Inc. |
---|
.. | .. |
---|
5 | 6 | * Copyright (c) 2001 Intel Corp. |
---|
6 | 7 | * |
---|
7 | 8 | * This file is part of the SCTP kernel implementation |
---|
8 | | - * |
---|
9 | | - * This SCTP implementation is free software; |
---|
10 | | - * you can redistribute it and/or modify it under the terms of |
---|
11 | | - * the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
13 | | - * any later version. |
---|
14 | | - * |
---|
15 | | - * This SCTP implementation is distributed in the hope that it |
---|
16 | | - * will be useful, but WITHOUT ANY WARRANTY; without even the implied |
---|
17 | | - * ************************ |
---|
18 | | - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
19 | | - * See the GNU General Public License for more details. |
---|
20 | | - * |
---|
21 | | - * You should have received a copy of the GNU General Public License |
---|
22 | | - * along with GNU CC; see the file COPYING. If not, see |
---|
23 | | - * <http://www.gnu.org/licenses/>. |
---|
24 | 9 | * |
---|
25 | 10 | * Please send any bug reports or fixes you make to the |
---|
26 | 11 | * email address(es): |
---|
.. | .. |
---|
71 | 56 | SCTP_NUM_AUTH_CHUNK_TYPES) |
---|
72 | 57 | |
---|
73 | 58 | /* These are the different flavours of event. */ |
---|
74 | | -enum sctp_event { |
---|
| 59 | +enum sctp_event_type { |
---|
75 | 60 | SCTP_EVENT_T_CHUNK = 1, |
---|
76 | 61 | SCTP_EVENT_T_TIMEOUT, |
---|
77 | 62 | SCTP_EVENT_T_OTHER, |
---|
.. | .. |
---|
147 | 132 | |
---|
148 | 133 | #define sctp_chunk_is_data(a) (a->chunk_hdr->type == SCTP_CID_DATA || \ |
---|
149 | 134 | a->chunk_hdr->type == SCTP_CID_I_DATA) |
---|
150 | | - |
---|
151 | | -/* Calculate the actual data size in a data chunk */ |
---|
152 | | -#define SCTP_DATA_SNDSIZE(c) ((int)((unsigned long)(c->chunk_end) - \ |
---|
153 | | - (unsigned long)(c->chunk_hdr) - \ |
---|
154 | | - sctp_datachk_len(&c->asoc->stream))) |
---|
155 | 135 | |
---|
156 | 136 | /* Internal error codes */ |
---|
157 | 137 | enum sctp_ierror { |
---|
.. | .. |
---|
306 | 286 | * functions simpler to write. |
---|
307 | 287 | */ |
---|
308 | 288 | |
---|
| 289 | +/* These are the values for pf exposure, UNUSED is to keep compatible with old |
---|
| 290 | + * applications by default. |
---|
| 291 | + */ |
---|
| 292 | +enum { |
---|
| 293 | + SCTP_PF_EXPOSE_UNSET, |
---|
| 294 | + SCTP_PF_EXPOSE_DISABLE, |
---|
| 295 | + SCTP_PF_EXPOSE_ENABLE, |
---|
| 296 | +}; |
---|
| 297 | +#define SCTP_PF_EXPOSE_MAX SCTP_PF_EXPOSE_ENABLE |
---|
| 298 | + |
---|
| 299 | +#define SCTP_PS_RETRANS_MAX 0xffff |
---|
| 300 | + |
---|
309 | 301 | /* These return values describe the success or failure of a number of |
---|
310 | 302 | * routines which form the lower interface to SCTP_outqueue. |
---|
311 | 303 | */ |
---|