PERFORCE change 41548 for review
Sam Leffler
sam at FreeBSD.org
Wed Nov 5 19:55:51 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=41548
Change 41548 by sam at sam_ebb on 2003/11/05 19:55:48
use existing copy instead of doing a pointer deref
Affected files ...
.. //depot/projects/netperf/sys/netinet/tcp_timer.c#4 edit
Differences ...
==== //depot/projects/netperf/sys/netinet/tcp_timer.c#4 (text+ko) ====
@@ -353,8 +353,7 @@
tcpstat.tcps_keeptimeo++;
if (tp->t_state < TCPS_ESTABLISHED)
goto dropit;
- if ((always_keepalive ||
- tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) &&
+ if ((always_keepalive || inp->inp_socket->so_options & SO_KEEPALIVE) &&
tp->t_state <= TCPS_CLOSING) {
if ((ticks - tp->t_rcvtime) >= tcp_keepidle + tcp_maxidle)
goto dropit;
@@ -383,7 +382,7 @@
callout_reset(tp->tt_keep, tcp_keepidle, tcp_timer_keep, tp);
#ifdef TCPDEBUG
- if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
+ if (inp->inp_socket->so_options & SO_DEBUG)
tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
PRU_SLOWTIMO);
#endif
More information about the p4-projects
mailing list