Rewrite accept() code-path and make l4fwd not to close() on FIN immediatelly. 17/5617/3
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 3 Mar 2017 18:40:23 +0000 (18:40 +0000)
committerKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 6 Mar 2017 15:06:38 +0000 (15:06 +0000)
commit21e7392fca2c430018cf387bb3e368ea4c665446
tree82109e1b1af7aa3303d1f9b04c1d063aa3b14873
parent9cbfd751b210f03fdb2fcbf8cafe59b9db516295
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 <konstantin.ananyev@intel.com>
examples/l4fwd/common.h
examples/l4fwd/netbe.h
examples/l4fwd/tcp.h
lib/libtle_l4p/stream_table.h
lib/libtle_l4p/syncookie.h
lib/libtle_l4p/tcp_ctl.h
lib/libtle_l4p/tcp_rxtx.c
lib/libtle_l4p/tcp_stream.c
lib/libtle_l4p/tle_event.h
lib/libtle_l4p/tle_tcp.h