aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2017-10-02 23:29:56 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2017-10-02 23:29:56 +0000
commit0e229f343f4e8791f84a7acc6300f0bd1476c7b5 (patch)
tree2811f4d846f70a25dfb21f6569e58b90a61dd304 /sys/sys/sockbuf.h
parent9d1d1d1900e60d56d2505beb8286ed7b9dde63c1 (diff)
downloadsrc-0e229f343f4e8791f84a7acc6300f0bd1476c7b5.tar.gz
src-0e229f343f4e8791f84a7acc6300f0bd1476c7b5.zip
Hide struct socket and struct unpcb from the userland.
Violators may define _WANT_SOCKET and _WANT_UNPCB respectively and are not guaranteed for stability of the structures. The violators list is the the usual one: libprocstat(3) and netstat(1) internally and lsof in ports. In struct xunpcb remove the inclusion of kernel structure and add a bunch of spare fields. The xsocket already has socket not included, but add there spares as well. Embed xsockbuf into xsocket. Sort declarations in sys/socketvar.h to separate kernel only from userland available ones. PR: 221820 (exp-run)
Notes
Notes: svn path=/head/; revision=324227
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r--sys/sys/sockbuf.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index a4ed33274d79..c864937f0002 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -65,18 +65,6 @@ struct socket;
struct thread;
struct selinfo;
-struct xsockbuf {
- u_int sb_cc;
- u_int sb_hiwat;
- u_int sb_mbcnt;
- u_int sb_mcnt;
- u_int sb_ccnt;
- u_int sb_mbmax;
- int sb_lowat;
- int sb_timeo;
- short sb_flags;
-};
-
/*
* Variables for socket buffering.
*
@@ -174,7 +162,6 @@ struct mbuf *
sbsndptr(struct sockbuf *sb, u_int off, u_int len, u_int *moff);
struct mbuf *
sbsndmbuf(struct sockbuf *sb, u_int off, u_int *moff);
-void sbtoxsockbuf(struct sockbuf *sb, struct xsockbuf *xsb);
int sbwait(struct sockbuf *sb);
int sblock(struct sockbuf *sb, int flags);
void sbunlock(struct sockbuf *sb);