X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/ee295cbe38bc13d3645c4f0688a642e69a30cfbc..acd31a69ea41698798c8dcc03369dd7c70e4741e:/sys/sys/socketvar.h diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index f5ac9a77b3..ab494be669 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -56,6 +56,10 @@ #if defined(_KERNEL) || defined(_KERNEL_STRUCTURES) +#ifndef _NET_NETMSG_H_ +#include +#endif + struct accept_filter; /* @@ -148,6 +152,8 @@ struct socket { void *so_accept_filter_arg; /* saved filter args */ char *so_accept_filter_str; /* saved user args */ } *so_accf; + + struct netmsg_base so_clomsg; }; #endif @@ -437,6 +443,9 @@ int sosend (struct socket *so, struct sockaddr *addr, struct uio *uio, int sosendudp (struct socket *so, struct sockaddr *addr, struct uio *uio, struct mbuf *top, struct mbuf *control, int flags, struct thread *td); +int sosendtcp (struct socket *so, struct sockaddr *addr, struct uio *uio, + struct mbuf *top, struct mbuf *control, int flags, + struct thread *td); int sosetopt (struct socket *so, struct sockopt *sopt); int soshutdown (struct socket *so, int how); void sotoxsocket (struct socket *so, struct xsocket *xso);