From 343af33b08ebc83791fd57a1ccdef91ce1ac2a9e Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Mon, 23 Nov 2015 12:52:44 +0300 Subject: preparation for DPDK intergation (part 5) --- accel-pppd/include/ap_net.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accel-pppd/include/ap_net.h') diff --git a/accel-pppd/include/ap_net.h b/accel-pppd/include/ap_net.h index 8ed8536d..0872e228 100644 --- a/accel-pppd/include/ap_net.h +++ b/accel-pppd/include/ap_net.h @@ -6,15 +6,15 @@ struct ap_net { int (*connect)(int sock, const struct sockaddr *, socklen_t len); int (*bind)(int sock, const struct sockaddr *, socklen_t len); int (*listen)(int sock, int backlog); - ssize_t (*recv)(int sock, void *buf, size_t len, int flags); + ssize_t (*read)(int sock, void *buf, size_t len); ssize_t (*recvfrom)(int sock, void *buf, size_t len, int flags, struct sockaddr *src_addr, socklen_t *addrlen); - ssize_t (*send)(int sock, const void *buf, size_t len, int flags); + ssize_t (*write)(int sock, const void *buf, size_t len); ssize_t (*sendto)(int sock, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen); int (*set_nonblocking)(int sock, int f); int (*setsockopt)(int sockfd, int level, int optname, const void *optval, socklen_t optlen); + int (*sock_ioctl)(unsigned long request, void *arg); int (*ppp_open)(); int (*ppp_ioctl)(int fd, unsigned long request, void *arg); - int (*sock_ioctl)(unsigned long request, void *arg); }; #endif -- cgit v1.2.3