TSG-14829 io_uring支持触发事件,适配mrzcpd的epoll_wait功能

This commit is contained in:
luwenpeng
2023-04-21 17:57:23 +08:00
parent 6e02f6b8ac
commit 97a4386bc4
20 changed files with 2255 additions and 1 deletions

19
common/include/tap.h Normal file
View File

@@ -0,0 +1,19 @@
#ifndef _TAP_H_
#define _TAP_H_
#ifdef __cplusplus
extern "C"
{
#endif
int tap_open(const char *eth, int flags);
void tap_close(int sockfd);
int tap_up_link(const char *eth);
int tap_get_mtu(const char *eth);
#ifdef __cplusplus
}
#endif
#endif