diff options
author | jhb <jhb@FreeBSD.org> | 2008-08-05 21:59:20 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-08-05 21:59:20 +0000 |
commit | b537a8d5fd2845634d522ad924753c19b00f5cab (patch) | |
tree | 1b0330aa38d02109f507d841f57b181bef1380ce /sys/netinet/tcp_syncache.c | |
parent | 24c4192859a382c5ad248dd77f58192f1bf0c83b (diff) | |
download | FreeBSD-src-b537a8d5fd2845634d522ad924753c19b00f5cab.zip FreeBSD-src-b537a8d5fd2845634d522ad924753c19b00f5cab.tar.gz |
Minor style tweaks.
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 9578781..3f7a9bc 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -909,15 +909,14 @@ syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th, "rejected\n", s, __func__, th->th_ack, sc->sc_iss); goto failed; } + /* - * The SEQ must fall in the window starting a the received initial receive - * sequence number + 1 (the SYN). + * The SEQ must fall in the window starting at the received + * initial receive sequence number + 1 (the SYN). */ - if ((SEQ_LEQ(th->th_seq, sc->sc_irs) || - SEQ_GT(th->th_seq, sc->sc_irs + sc->sc_wnd )) && - !TOEPCB_ISSET(sc)) - { + SEQ_GT(th->th_seq, sc->sc_irs + sc->sc_wnd)) && + !TOEPCB_ISSET(sc)) { if ((s = tcp_log_addrs(inc, th, NULL, NULL))) log(LOG_DEBUG, "%s; %s: SEQ %u != IRS+1 %u, segment " "rejected\n", s, __func__, th->th_seq, sc->sc_irs); |