Skip to content

Commit

Permalink
tcp: use TCP_MAXWIN instead of 65535
Browse files Browse the repository at this point in the history
This is suggested by cc@. No functional change.

Sponsored by:	Netflix, Inc.
  • Loading branch information
tuexen committed Jul 22, 2024
1 parent c74a4ce commit 37b3e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet/tcp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -2443,7 +2443,7 @@ tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
/*
* Ack processing.
*/
if (SEQ_GEQ(tp->snd_una, tp->iss + (65535 << tp->snd_scale))) {
if (SEQ_GEQ(tp->snd_una, tp->iss + (TCP_MAXWIN << tp->snd_scale))) {
/* Checking SEG.ACK against ISS is definitely redundant. */
tp->t_flags2 |= TF2_NO_ISS_CHECK;
}
Expand Down

0 comments on commit 37b3e6a

Please sign in to comment.