summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-06-01 00:52:38 +0000
committerhenning <henning@openbsd.org>2007-06-01 00:52:38 +0000
commit2e53853b84893de2583504e2e7b67028f088563f (patch)
tree7fb273b1f9f6816a2aca5b90040466d2d8865fba /sys/netinet/tcp_output.c
parentstart new sentence w/ capital letter; (diff)
downloadwireguard-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_output.c')
-rw-r--r--sys/netinet/tcp_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index d36f60dac3c..8d1414a117a 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.79 2005/06/30 08:51:31 markus Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.80 2007/06/01 00:52:38 henning Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -1106,7 +1106,8 @@ send:
}
error = ip6_output(m, tp->t_inpcb->inp_outputopts6,
&tp->t_inpcb->inp_route6,
- (so->so_options & SO_DONTROUTE), NULL, NULL);
+ (so->so_options & SO_DONTROUTE), NULL, NULL,
+ tp->t_inpcb);
break;
#endif /* INET6 */
}