diff options
author | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2021-05-13 15:26:50 +0000 |
---|---|---|
committer | Konstantin Ananyev <konstantin.ananyev@intel.com> | 2021-05-13 17:32:55 +0000 |
commit | e0d62f616439955946d24ad83d49552da24afd5d (patch) | |
tree | 6a0b3cb971cb2857da3c7b5111bc64d2b0ac1b60 /lib/libtle_l4p/tcp_stream.h | |
parent | 10ae544444cfafc4367d9c1f39f332b6206772bf (diff) |
l4p/tcp: introduce tle_tcp_stream_establish() API
tle_tcp_stream_establish() allows to create streams in established
connection state.
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Change-Id: Ib302c4d7f229144d2624279f973f00041fb611b2
Diffstat (limited to 'lib/libtle_l4p/tcp_stream.h')
-rw-r--r-- | lib/libtle_l4p/tcp_stream.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libtle_l4p/tcp_stream.h b/lib/libtle_l4p/tcp_stream.h index a3d00dc..a36b5fe 100644 --- a/lib/libtle_l4p/tcp_stream.h +++ b/lib/libtle_l4p/tcp_stream.h @@ -46,10 +46,11 @@ enum { }; enum { - TCP_OP_LISTEN = 0x1, - TCP_OP_ACCEPT = 0x2, - TCP_OP_CONNECT = 0x4, - TCP_OP_CLOSE = 0x8, + TCP_OP_LISTEN = 0x1, + TCP_OP_ACCEPT = 0x2, + TCP_OP_CONNECT = 0x4, + TCP_OP_ESTABLISH = 0x8, + TCP_OP_CLOSE = 0x10, }; struct tcb { @@ -90,7 +91,7 @@ struct tcb { uint8_t nb_retx; /* number of retransmission */ uint8_t nb_retm; /**< max number of retx attempts. */ } snd; - struct syn_opts so; /* initial syn options. */ + struct tle_tcp_syn_opts so; /* initial syn options. */ }; struct tle_tcp_stream { @@ -189,6 +190,9 @@ struct tcp_streams { #define CTX_TCP_SDR(ctx) (&CTX_TCP_STREAMS(ctx)->dr) #define CTX_TCP_MTS(ctx) (CTX_TCP_STREAMS(ctx)->mts) +extern int tcp_stream_fill_prm(struct tle_tcp_stream *s, + const struct tle_tcp_stream_param *prm); + #ifdef __cplusplus } #endif |