diff options
author | phk <phk@FreeBSD.org> | 1994-10-02 17:48:58 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-10-02 17:48:58 +0000 |
commit | f3c1ed23270f2db1e6c2456439dd12b7b68e8bde (patch) | |
tree | c117ab448d9316a116c92751ddc54084d53fb88a /sys/netinet/tcp_input.c | |
parent | 451659421c6fd9cc8d83d27e51ae1ba317522182 (diff) | |
download | FreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.zip FreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.tar.gz |
GCC cleanup.
Reviewed by:
Submitted by:
Obtained from:
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index c6f3e20..b522006 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.5 (Berkeley) 4/10/94 - * $Id: tcp_input.c,v 1.7 1994/08/26 22:27:16 wollman Exp $ + * $Id: tcp_input.c,v 1.8 1994/09/15 10:36:54 davidg Exp $ */ #ifndef TUBA_INCLUDE @@ -258,7 +258,8 @@ tcp_input(m, iphlen) ti->ti_x1 = 0; ti->ti_len = (u_short)tlen; HTONS(ti->ti_len); - if (ti->ti_sum = in_cksum(m, len)) { + ti->ti_sum = in_cksum(m, len); + if (ti->ti_sum) { tcpstat.tcps_rcvbadsum++; goto drop; } @@ -1128,9 +1129,9 @@ step6: * Don't look at window if no ACK: TAC's send garbage on first SYN. */ if ((tiflags & TH_ACK) && - (SEQ_LT(tp->snd_wl1, ti->ti_seq) || tp->snd_wl1 == ti->ti_seq && - (SEQ_LT(tp->snd_wl2, ti->ti_ack) || - tp->snd_wl2 == ti->ti_ack && tiwin > tp->snd_wnd))) { + (SEQ_LT(tp->snd_wl1, ti->ti_seq) || + (tp->snd_wl1 == ti->ti_seq && (SEQ_LT(tp->snd_wl2, ti->ti_ack) || + (tp->snd_wl2 == ti->ti_ack && tiwin > tp->snd_wnd))))) { /* keep track of pure window updates */ if (ti->ti_len == 0 && tp->snd_wl2 == ti->ti_ack && tiwin > tp->snd_wnd) |