diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-11-30 13:24:21 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2014-11-30 13:24:21 +0000 |
commit | 651e4e6a307776b3f5201639e10c4b4d0949dcb0 (patch) | |
tree | fcd9e335b091a7447c168c321acc47998ebd38d2 /sys/kern/uipc_socket.c | |
parent | dcf58f92e2c19a32fc171f763698e711c719badc (diff) | |
download | src-651e4e6a307776b3f5201639e10c4b4d0949dcb0.tar.gz src-651e4e6a307776b3f5201639e10c4b4d0949dcb0.zip |
Merge from projects/sendfile: extend protocols API to support
sending not ready data:
o Add new flag to pru_send() flags - PRUS_NOTREADY.
o Add new protocol method pru_ready().
Sponsored by: Nginx, Inc.
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=275329
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 7433b0e2ad1c..b2091ea28417 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -3178,6 +3178,13 @@ pru_send_notsupp(struct socket *so, int flags, struct mbuf *m, return EOPNOTSUPP; } +int +pru_ready_notsupp(struct socket *so, struct mbuf *m, int count) +{ + + return (EOPNOTSUPP); +} + /* * This isn't really a ``null'' operation, but it's the default one and * doesn't do anything destructive. |