aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-20 16:19:44 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-20 16:19:44 +0000
commit63b6b7a74abd96aac17d464b83a4d35442c47b17 (patch)
treec47617a54ae0e9a02a065c698879cf7b86cf8e1a /sys/netinet
parent422fa64be3d173171e687ad9d9cf9fb5e0ca392d (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_syncache.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index 91e4c5902570..8c8b5d7b4ff9 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -1896,8 +1896,7 @@ syncookie_generate(struct syncache_head *sch, struct syncache *sc)
/* Map our computed MSS into the 3-bit index. */
mss = min(tcp_mssopt(&sc->sc_inc), max(sc->sc_peer_mss, V_tcp_minmss));
- for (i = nitems(tcp_sc_msstab) - 1;
- tcp_sc_msstab[i] > mss && i > 0;
+ for (i = nitems(tcp_sc_msstab) - 1; tcp_sc_msstab[i] > mss && i > 0;
i--)
;
cookie.flags.mss_idx = i;
@@ -1909,7 +1908,7 @@ syncookie_generate(struct syncache_head *sch, struct syncache *sc)
if (sc->sc_flags & SCF_WINSCALE) {
wscale = sc->sc_requested_s_scale;
for (i = nitems(tcp_sc_wstab) - 1;
- tcp_sc_wstab[i] > wscale && i > 0;
+ tcp_sc_wstab[i] > wscale && i > 0;
i--)
;
cookie.flags.wscale_idx = i;