summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_inlines.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-23 10:45:48 -0700
committerDave Barach <openvpp@barachs.net>2020-10-23 19:26:18 +0000
commit55e556c93df001617863494e873498d9c0b7c172 (patch)
tree23eca5043549640fca6a8042810b0aa379ace1f9 /src/vnet/tcp/tcp_inlines.h
parenteaec00cf87d155511b90df4fb83d7e99cb3f185f (diff)
tcp: remove snd_una_max
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I03f923053499f219035c9b7b6640fc575568d474
Diffstat (limited to 'src/vnet/tcp/tcp_inlines.h')
-rw-r--r--src/vnet/tcp/tcp_inlines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_inlines.h b/src/vnet/tcp/tcp_inlines.h
index cb00ca4a97b..25bf7387c69 100644
--- a/src/vnet/tcp/tcp_inlines.h
+++ b/src/vnet/tcp/tcp_inlines.h
@@ -182,7 +182,7 @@ tcp_available_cc_snd_space (const tcp_connection_t * tc)
always_inline u8
tcp_is_lost_fin (tcp_connection_t * tc)
{
- if ((tc->flags & TCP_CONN_FINSNT) && (tc->snd_una_max - tc->snd_una == 1))
+ if ((tc->flags & TCP_CONN_FINSNT) && (tc->snd_nxt - tc->snd_una == 1))
return 1;
return 0;
}