支持tun模式调通
This commit is contained in:
10
entry/include/kni_tun.h
Normal file
10
entry/include/kni_tun.h
Normal file
@@ -0,0 +1,10 @@
|
||||
enum kni_tun_mode{
|
||||
KNI_TUN_MODE_BLOCK = 0,
|
||||
KNI_TUN_MODE_NOBLOCK = 2,
|
||||
};
|
||||
|
||||
struct kni_tun_handle;
|
||||
void kni_tun_destroy(struct kni_tun_handle *tun_handle);
|
||||
struct kni_tun_handle* kni_tun_init(char *tun_name, enum kni_tun_mode mode, void *logger);
|
||||
int kni_tun_write(struct kni_tun_handle *handle, char *buff, uint16_t buff_len);
|
||||
int kni_tun_read(struct kni_tun_handle *handle, char *buff, uint16_t buff_len);
|
||||
Reference in New Issue
Block a user