From c9a9f5d3470ca14df4496763e0770d5e2ab734d7 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 8 Aug 2019 09:44:47 -0700 Subject: tcp: fix zero rwnd sent check Type:fix Change-Id: I1e6f2cb28c1bf544cc3d060b11c8935f9edb0eed Signed-off-by: Florin Coras (cherry picked from commit d1ba3d257788f1a65016a50a53d85f2b905874bb) --- src/vnet/tcp/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index a340d2f0696..ae50947b797 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -454,7 +454,7 @@ tcp_cong_recovery_off (tcp_connection_t * tc) tcp_fastrecovery_first_off (tc); } -#define tcp_zero_rwnd_sent(tc) (tc)->flags &= TCP_CONN_ZERO_RWND_SENT +#define tcp_zero_rwnd_sent(tc) ((tc)->flags & TCP_CONN_ZERO_RWND_SENT) #define tcp_zero_rwnd_sent_on(tc) (tc)->flags |= TCP_CONN_ZERO_RWND_SENT #define tcp_zero_rwnd_sent_off(tc) (tc)->flags &= ~TCP_CONN_ZERO_RWND_SENT -- cgit 1.2.3-korg