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 <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
5a16b9020f
commit
45a394e805
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user