tcp: fix zero rwnd sent check 54/21154/2
authorFlorin Coras <fcoras@cisco.com>
Thu, 8 Aug 2019 16:44:47 +0000 (09:44 -0700)
committerDave Barach <openvpp@barachs.net>
Thu, 8 Aug 2019 22:01:58 +0000 (22:01 +0000)
Type:fix

Change-Id: I1e6f2cb28c1bf544cc3d060b11c8935f9edb0eed
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/tcp/tcp.h

index fe02640..aa93bbf 100644 (file)
@@ -457,7 +457,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