This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-kni/entry/include/kni_tun.h
2019-09-06 16:50:37 +08:00

10 lines
406 B
C

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);