From 45a394e805360c19b4a72c7d313d200e301e002d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 23 Aug 2018 13:54:07 +0300 Subject: [PATCH] net: tcp: Remove NET_TCP_FINAL_* flags These were at most set, but never used. They appear to be artifacts of importing code from the FNET stack. Addresses: #9570 Signed-off-by: Paul Sokolovsky --- subsys/net/ip/tcp.c | 1 - subsys/net/ip/tcp_internal.h | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/subsys/net/ip/tcp.c b/subsys/net/ip/tcp.c index 63f49429d52..990197915b1 100644 --- a/subsys/net/ip/tcp.c +++ b/subsys/net/ip/tcp.c @@ -553,7 +553,6 @@ int net_tcp_prepare_segment(struct net_tcp *tcp, u8_t flags, } if (flags & NET_TCP_FIN) { - tcp->flags |= NET_TCP_FINAL_SENT; /* RFC793 says about ACK bit: "Once a connection is * established this is always sent." as teardown * happens when connection is established, it must diff --git a/subsys/net/ip/tcp_internal.h b/subsys/net/ip/tcp_internal.h index b706db6c5c0..48e61ba554b 100644 --- a/subsys/net/ip/tcp_internal.h +++ b/subsys/net/ip/tcp_internal.h @@ -29,11 +29,7 @@ extern "C" { /** Is this TCP context/socket used or not */ #define NET_TCP_IN_USE BIT(0) -/** Is the final segment sent */ -#define NET_TCP_FINAL_SENT BIT(1) - -/** Is the final segment received */ -#define NET_TCP_FINAL_RECV BIT(2) +/* BIT(1), BIT(2) are unused and available */ /** Is the socket shutdown for read/write */ #define NET_TCP_IS_SHUTDOWN BIT(3)