TSG-14829 io_uring支持触发事件,适配mrzcpd的epoll_wait功能
This commit is contained in:
19
common/include/tap.h
Normal file
19
common/include/tap.h
Normal 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
|
||||
Reference in New Issue
Block a user