diff options
author | 2007-06-01 00:52:38 +0000 | |
---|---|---|
committer | 2007-06-01 00:52:38 +0000 | |
commit | 2e53853b84893de2583504e2e7b67028f088563f (patch) | |
tree | 7fb273b1f9f6816a2aca5b90040466d2d8865fba /sys/netinet/tcp_subr.c | |
parent | start new sentence w/ capital letter; (diff) | |
download | wireguard-openbsd-2e53853b84893de2583504e2e7b67028f088563f.tar.xz wireguard-openbsd-2e53853b84893de2583504e2e7b67028f088563f.zip |
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: |