From aa91bee2dcd3da3db61955d9c82f428d7cc8ed03 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 5 Aug 2008 21:59:20 +0000 Subject: [PATCH] Minor style tweaks. --- sys/netinet/tcp_syncache.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 95787819218..3f7a9bc4829 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);