net/tcp: add connection info to tcp_stream structure
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Sat, 28 Dec 2024 10:46:30 +0000 (13:46 +0300)
committerTom Rini <trini@konsulko.com>
Sat, 28 Dec 2024 17:59:42 +0000 (11:59 -0600)
commit2b1774987031d6f30fb773bd84e91884f35fbc8d
tree40e6436e42f7afdbd7c7ebe11673928b69a29e8d
parentddedfe1cb8b6c262990b629494165082320cc884
net/tcp: add connection info to tcp_stream structure

Changes:
 * Avoid use net_server_ip in tcp code, use tcp_stream data instead
 * Ignore packets from other connections if connection already created.
   This prevents us from connection break caused by other tcp stream.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/net-legacy.h
include/net/tcp.h
net/fastboot_tcp.c
net/net.c
net/tcp.c
net/wget.c