blob: 6d3243fa0b977eda2b07af92eb561556a2f865e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#pragma once
struct mgw_tun_handle;
struct mgw_tun_handle * mgw_tun_init(const char *dev, void *logger);
int mgw_tun_read(struct mgw_tun_handle *handle, char *recv_ip_pkts, size_t ip_pkt_len);
int mgw_tun_write(struct mgw_tun_handle *handle, char *buff, size_t len);
void mgw_tun_destroy(struct mgw_tun_handle *handle);
|