aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2003-11-08 22:57:13 +0000
committerSam Leffler <sam@FreeBSD.org>2003-11-08 22:57:13 +0000
commit2a0746208b144d29320e34296c47ccd3fa7a14c6 (patch)
treed0a475aea6ec9daaef4cc4da83154580d3ad6feb /sys/netinet
parentfa286d7db2479f0ba7ca84f97af8c9bee7f94c44 (diff)
downloadsrc-2a0746208b144d29320e34296c47ccd3fa7a14c6.tar.gz
src-2a0746208b144d29320e34296c47ccd3fa7a14c6.zip
use local values instead of chasing pointers
Supported by: FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=122326
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_timer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 12b63a558eff..1a253ab06231 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -353,8 +353,7 @@ tcp_timer_keep(xtp)
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 @@ tcp_timer_keep(xtp)
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