diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-23 12:52:44 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-12-04 21:33:42 +0300 |
commit | 343af33b08ebc83791fd57a1ccdef91ce1ac2a9e (patch) | |
tree | 335dc2f4f2b6dcba678a2b9445fda1ceba80c92c /accel-pppd/include/ap_net.h | |
parent | 4f511651b830aabc251eee01cb90ace822578053 (diff) | |
download | accel-ppp-343af33b08ebc83791fd57a1ccdef91ce1ac2a9e.tar.gz accel-ppp-343af33b08ebc83791fd57a1ccdef91ce1ac2a9e.zip |
preparation for DPDK intergation (part 5)
Diffstat (limited to 'accel-pppd/include/ap_net.h')
-rw-r--r-- | accel-pppd/include/ap_net.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |