diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-06-01 00:52:40 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-06-01 00:52:40 +0000 |
commit | 078e3b8342fd27a3f38f7aa29dbbde3c07273337 (patch) | |
tree | 4a5ad6410095ab27fe1e6014e3797bfe206f2d42 /sys/netinet/tcp_subr.c | |
parent | 0ac0ef2090fda4d15062e512580f65fa7d930e93 (diff) |
apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.
we need a pointer to the inpcb to decide, which was not previously
passed to ip6_output, so this diff is a little bigger.
from itojun, ok ryan
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 5693e4a1545..013efcdf795 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_subr.c,v 1.95 2007/05/09 14:28:47 deraadt Exp $ */ +/* $OpenBSD: tcp_subr.c,v 1.96 2007/06/01 00:52:38 henning Exp $ */ /* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */ /* @@ -443,7 +443,8 @@ tcp_respond(tp, template, m, ack, seq, flags) sizeof(struct ip6_hdr), ((struct ip6_hdr *)ti)->ip6_plen); HTONS(((struct ip6_hdr *)ti)->ip6_plen); ip6_output(m, tp ? tp->t_inpcb->inp_outputopts6 : NULL, - (struct route_in6 *)ro, 0, NULL, NULL); + (struct route_in6 *)ro, 0, NULL, NULL, + tp ? tp->t_inpcb : NULL); break; #endif /* INET6 */ case AF_INET: |