Files
nsjail/nstun/tun.h

18 lines
362 B
C++

#ifndef NSTUN_TUN_H_
#define NSTUN_TUN_H_
#include <stddef.h>
#include <stdint.h>
#include "core.h"
namespace nstun {
bool send_to_guest_v(
Context* ctx, const void* header, size_t header_len, const void* payload, size_t payload_len);
void handle_tun_frame(Context* ctx, const uint8_t* buf, size_t len);
} // namespace nstun
#endif /* NSTUN_TUN_H_ */