diff options
author | Marco Varlese <marco.varlese@suse.com> | 2017-10-30 18:17:21 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2018-01-24 15:45:35 +0000 |
commit | 191a59401c0552e5ea79041f34456eb9fcc1f311 (patch) | |
tree | 286d871aee72cb37e6d751715e89c6b178c7b527 /src/vnet/session/transport.h | |
parent | ce111d2ee3bacec2a09d8f5b664dcfafa0dd50c7 (diff) |
SCTP stack (RFC4960)
== CONTENT ==
* SCTP chunks definition as per RFC4960;
* Helper functions to set/get values to/from the corresponding chunks;
* Hooks to the session/application layers;
* Complete state-machine handling;
* Implementation for unexpected chunk received in a certain
state (state-machine error handling)
* Support for 1-single connection;
* Sample application to test receive/transmit data-path;
* Test to validate SCTP stack;
Change-Id: I1b55c455ab400be9513f4e094dadfc3181d2ebc9
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/vnet/session/transport.h')
-rw-r--r-- | src/vnet/session/transport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/session/transport.h b/src/vnet/session/transport.h index 61a2b7b8aa6..12b6a0551d8 100644 --- a/src/vnet/session/transport.h +++ b/src/vnet/session/transport.h @@ -70,6 +70,7 @@ typedef enum _transport_proto { TRANSPORT_PROTO_TCP, TRANSPORT_PROTO_UDP, + TRANSPORT_PROTO_SCTP, TRANSPORT_N_PROTO } transport_proto_t; @@ -110,7 +111,7 @@ transport_endpoint_fib_proto (transport_endpoint_t * tep) always_inline u8 transport_is_stream (u8 proto) { - return (proto == TRANSPORT_PROTO_TCP); + return ((proto == TRANSPORT_PROTO_TCP) || (proto == TRANSPORT_PROTO_SCTP)); } always_inline u8 |