aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2017-06-25 01:41:07 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2017-06-25 01:41:07 +0000
commit64290befc1e7023f3dc0120228a717e521d4c3da (patch)
treedd2cc43ef8b36c38c3c6a1deef69a90f1338bb00 /sys/sys/sockbuf.h
parent2d44649837d93bcc1e8814a1935125f4437beea6 (diff)
downloadsrc-64290befc1e7023f3dc0120228a717e521d4c3da.tar.gz
src-64290befc1e7023f3dc0120228a717e521d4c3da.zip
Provide sbsetopt() that handles socket buffer related socket options.
It distinguishes between data flow sockets and listening sockets, and in case of the latter doesn't change resource limits, since listening sockets don't hold any buffers, they only carry values to be inherited by their children.
Notes
Notes: svn path=/head/; revision=320324
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r--sys/sys/sockbuf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index d22e3bce1645..a4ed33274d79 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -167,8 +167,7 @@ void sbflush_locked(struct sockbuf *sb);
void sbrelease(struct sockbuf *sb, struct socket *so);
void sbrelease_internal(struct sockbuf *sb, struct socket *so);
void sbrelease_locked(struct sockbuf *sb, struct socket *so);
-int sbreserve(struct sockbuf *sb, u_long cc, struct socket *so,
- struct thread *td);
+int sbsetopt(struct socket *so, int cmd, u_long cc);
int sbreserve_locked(struct sockbuf *sb, u_long cc, struct socket *so,
struct thread *td);
struct mbuf *