PERFORCE change 164488 for review
Fang Wang
fangwang at FreeBSD.org
Tue Jun 16 10:00:32 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=164488
Change 164488 by fangwang at fangwang_utobsd on 2009/06/16 09:59:52
Fix panic problem.
Affected files ...
.. //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_syncache.c#6 edit
Differences ...
==== //depot/projects/soc2009/tcputo/src/sys/netinet/tcp_syncache.c#6 (text+ko) ====
@@ -978,6 +978,8 @@
u_int32_t flowtmp;
int win, sb_hiwat, ip_ttl, ip_tos, noopt;
char *s;
+ u_int8_t uto_flags;
+ u_int16_t snd_uto;
#ifdef INET6
int autoflowlabel = 0;
#endif
@@ -1011,6 +1013,9 @@
sb_hiwat = so->so_rcv.sb_hiwat;
noopt = (tp->t_flags & TF_NOOPT);
+ uto_flags = tp->uto_flags;
+ snd_uto = tp->snd_uto;
+
/* By the time we drop the lock these should no longer be used. */
so = NULL;
tp = NULL;
@@ -1221,8 +1226,8 @@
sc->sc_peer_uto = to->to_uto;
sc->sc_flags |= SCF_RCVD_UTO;
}
- if (tp->uto_flags & TCPUTO_NEED) {
- sc->sc_uto = tp->snd_uto;
+ if (uto_flags & TCPUTO_NEED) {
+ sc->sc_uto = snd_uto;
sc->sc_flags = SCF_UTO;
}
More information about the p4-projects
mailing list