tcp: fix zero rwnd sent check 58/21158/2
authorFlorin Coras <[email protected]>
Thu, 8 Aug 2019 16:44:47 +0000 (09:44 -0700)
committerDave Wallace <[email protected]>
Fri, 9 Aug 2019 13:52:02 +0000 (13:52 +0000)
Type:fix

Change-Id: I1e6f2cb28c1bf544cc3d060b11c8935f9edb0eed
Signed-off-by: Florin Coras <[email protected]>
(cherry picked from commit d1ba3d257788f1a65016a50a53d85f2b905874bb)

src/vnet/tcp/tcp.h

index a340d2f..ae50947 100644 (file)
@@ -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