Revert "l4p/tcp: introduce tle_tcp_stream_establish() API"
[tldk.git] / lib / libtle_l4p / tcp_stream.h
index a36b5fe..a3d00dc 100644 (file)
@@ -46,11 +46,10 @@ enum {
 };
 
 enum {
-       TCP_OP_LISTEN =    0x1,
-       TCP_OP_ACCEPT =    0x2,
-       TCP_OP_CONNECT =   0x4,
-       TCP_OP_ESTABLISH = 0x8,
-       TCP_OP_CLOSE =     0x10,
+       TCP_OP_LISTEN =  0x1,
+       TCP_OP_ACCEPT =  0x2,
+       TCP_OP_CONNECT = 0x4,
+       TCP_OP_CLOSE =   0x8,
 };
 
 struct tcb {
@@ -91,7 +90,7 @@ struct tcb {
                uint8_t nb_retx; /* number of retransmission */
                uint8_t nb_retm; /**< max number of retx attempts. */
        } snd;
-       struct tle_tcp_syn_opts so; /* initial syn options. */
+       struct syn_opts so; /* initial syn options. */
 };
 
 struct tle_tcp_stream {
@@ -190,9 +189,6 @@ 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