summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-08-08 09:44:47 -0700
committerDave Wallace <dwallacelf@gmail.com>2019-08-09 13:52:02 +0000
commitc9a9f5d3470ca14df4496763e0770d5e2ab734d7 (patch)
tree728352194236c4b6c556ddf3d2b80a3883f634e0 /src
parentc7f0fe030fec4aafad3ce0d05848da0635ead26b (diff)
tcp: fix zero rwnd sent check
Type:fix Change-Id: I1e6f2cb28c1bf544cc3d060b11c8935f9edb0eed Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit d1ba3d257788f1a65016a50a53d85f2b905874bb)
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tcp/tcp.h2
1 files changed, 1 insertions, 1 deletions
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