aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcom.h
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-11-13 21:21:53 -0500
committerKeith Burns <alagalah@gmail.com>2017-11-14 03:44:25 +0000
commit227867f5d3fb1b1dacbaf2f426812417b72ef03a (patch)
tree6d7b603b196d170717d5f81e23f122ec38989fb9 /src/vcl/vcom.h
parent49806fe252030a4cd993f598ff65a89590d57388 (diff)
VCL-LDPRELOAD: add sendfile/sendfile64 implementation.
Change-Id: If0c399269238912456d670432d7e953c9d91b9fb Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl/vcom.h')
-rw-r--r--src/vcl/vcom.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vcl/vcom.h b/src/vcl/vcom.h
index 9a78b718f8e..e945c8a5d08 100644
--- a/src/vcl/vcom.h
+++ b/src/vcl/vcom.h
@@ -23,6 +23,8 @@
#define VCOM_DEBUG 0
#endif
+#include <vppinfra/error.h>
+#include <vppinfra/types.h>
#include <vcl/vcom_glibc_socket.h>
#define MAX_VCOM_APP_NAME 256
@@ -107,7 +109,7 @@ vcom_getpeername (int __fd, __SOCKADDR_ARG __addr,
socklen_t * __restrict __len);
extern ssize_t
-vcom_send (int __fd, const void *__buf, size_t __n, int __flags);
+vcom_sendfile (int __out_fd, int __in_fd, off_t * __offset, int __len);
extern ssize_t vcom_recv (int __fd, void *__buf, size_t __n, int __flags);