diff options
author | bz <bz@FreeBSD.org> | 2008-11-27 13:19:42 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-27 13:19:42 +0000 |
commit | 6a4b56238472e6049d3dd41790d68bb81c5e306a (patch) | |
tree | a104aed3e0fc66bba0d6cbc8634b89849f0e476a /sys/netinet/tcp_output.c | |
parent | 864141180ec3ef4d8192d52ae360994300a14548 (diff) | |
download | FreeBSD-src-6a4b56238472e6049d3dd41790d68bb81c5e306a.zip FreeBSD-src-6a4b56238472e6049d3dd41790d68bb81c5e306a.tar.gz |
Replace most INP_CHECK_SOCKAF() uses checking if it is an
IPv6 socket by comparing a constant inp vflag.
This is expected to help to reduce extra locking.
Suggested by: rwatson
Reviewed by: rwatson
MFC after: 6 weeks
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index ab92905..d93592b 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1172,7 +1172,7 @@ timer: { ip->ip_len = m->m_pkthdr.len; #ifdef INET6 - if (INP_CHECK_SOCKAF(so, AF_INET6)) + if (tp->t_inpcb->inp_vflag & INP_IPV6PROTO) ip->ip_ttl = in6_selecthlim(tp->t_inpcb, NULL); #endif /* INET6 */ /* |