You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
525 B
31 lines
525 B
// nat_transport.h — NAT transport layer (TUN + ETCP protocol handling) |
|
#ifndef NAT_TRANSPORT_H |
|
#define NAT_TRANSPORT_H |
|
|
|
#ifdef __cplusplus |
|
extern "C" { |
|
#endif |
|
|
|
|
|
#include <stdint.h> |
|
|
|
struct tun_if; |
|
struct ETCP_CONN; |
|
|
|
struct nat_transport_ctx { |
|
uint64_t self_node_id; |
|
uint64_t nat_via_node_id; |
|
struct tun_if* nat_tun; |
|
int initialized; |
|
}; |
|
|
|
struct UTUN_INSTANCE; |
|
|
|
int nat_transport_init(struct UTUN_INSTANCE* inst); |
|
void nat_transport_destroy(struct UTUN_INSTANCE* inst); |
|
|
|
|
|
#ifdef __cplusplus |
|
} |
|
#endif |
|
#endif
|
|
|