summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authordhill <dhill@openbsd.org>2017-02-01 20:59:47 +0000
committerdhill <dhill@openbsd.org>2017-02-01 20:59:47 +0000
commit490e07389287ee0220d61374d4494b51bf6c4492 (patch)
tree9fac3a8a03787a9dd2622cff8c29c632a3dfefa7 /sys/netinet/tcp_var.h
parentAdd a missing sizeof(*lines) factor to previous commit to ensure we zero (diff)
downloadwireguard-openbsd-490e07389287ee0220d61374d4494b51bf6c4492.tar.xz
wireguard-openbsd-490e07389287ee0220d61374d4494b51bf6c4492.zip
In sogetopt, preallocate an mbuf to avoid using sleeping mallocs with
the netlock held. This also changes the prototypes of the *ctloutput functions to take an mbuf instead of an mbuf pointer. help, guidance from bluhm@ and mpi@ ok bluhm@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index fdf468af7d5..e04a16f7b31 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.120 2017/01/29 19:58:47 bluhm Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.121 2017/02/01 20:59:47 dhill Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -602,7 +602,7 @@ int tcp_freeq(struct tcpcb *);
void tcp6_ctlinput(int, struct sockaddr *, u_int, void *);
#endif
void tcp_ctlinput(int, struct sockaddr *, u_int, void *);
-int tcp_ctloutput(int, struct socket *, int, int, struct mbuf **);
+int tcp_ctloutput(int, struct socket *, int, int, struct mbuf *);
struct tcpcb *
tcp_disconnect(struct tcpcb *);
struct tcpcb *