From 21e7392fca2c430018cf387bb3e368ea4c665446 Mon Sep 17 00:00:00 2001 From: Konstantin Ananyev Date: Fri, 3 Mar 2017 18:40:23 +0000 Subject: Rewrite accept() code-path and make l4fwd not to close() on FIN immediatelly. Changes in public API: - removes tle_tcp_stream_synreqs() and tle_tcp_reject() - adds tle_tcp_stream_update_cfg Allocates and fills new stream when final ACK for 3-way handshake is received. Changes in l4fwd sample application: prevents l4fwd to call close() on error event immediately: first try to recv/send remaining data. Change-Id: I8c5b9d365353084083731a4ce582197a8268688f Signed-off-by: Konstantin Ananyev --- lib/libtle_l4p/stream_table.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libtle_l4p/stream_table.h') diff --git a/lib/libtle_l4p/stream_table.h b/lib/libtle_l4p/stream_table.h index 8ad1103..29f1f63 100644 --- a/lib/libtle_l4p/stream_table.h +++ b/lib/libtle_l4p/stream_table.h @@ -110,13 +110,13 @@ stbl_add_entry(struct stbl *st, const union pkt_info *pi) } static inline struct stbl_entry * -stbl_add_pkt(struct stbl *st, const union pkt_info *pi, const void *pkt) +stbl_add_stream(struct stbl *st, const union pkt_info *pi, const void *s) { struct stbl_entry *se; se = stbl_add_entry(st, pi); if (se != NULL) - se->data = (void *)((uintptr_t)pkt | STE_PKT); + se->data = (void *)(uintptr_t)s; return se; } -- cgit 1.2.3-korg