summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2003-01-29 03:49:49 +0000
committerMike Silbersack <silby@FreeBSD.org>2003-01-29 03:49:49 +0000
commitd4d5315c2313ee1e935dc8c87af87f4a2cfd816e (patch)
treec9cbe6047800c9b3585a5d1cb4da8e0c47c64872 /sys/netinet/tcp_syncache.c
parenta42a7e2f135de36b3ba5571c3178db39df8dc78d (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index 798c379079a2..ba13efabaa90 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -931,6 +931,8 @@ syncache_add(inc, to, th, sop, m)
sc->sc_route.ro_rt = NULL;
}
sc->sc_irs = th->th_seq;
+ sc->sc_flags = 0;
+ sc->sc_peer_mss = to->to_flags & TOF_MSS ? to->to_mss : 0;
if (tcp_syncookies)
sc->sc_iss = syncookie_generate(sc);
else
@@ -942,8 +944,6 @@ syncache_add(inc, to, th, sop, m)
win = imin(win, TCP_MAXWIN);
sc->sc_wnd = win;
- sc->sc_flags = 0;
- sc->sc_peer_mss = to->to_flags & TOF_MSS ? to->to_mss : 0;
if (tcp_do_rfc1323) {
/*
* A timestamp received in a SYN makes