EPS Conduits  v0.0.2-2411
networking over networking
tun_tap.hpp File Reference
#include <string>
#include "common.hpp"
Include dependency graph for tun_tap.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 EPS
 

Functions

bool EPS::validate_network_against_existing_routes (const uint32_t &eps_network_in_host_order, const uint32_t &eps_netmask_in_host_order)
 Verify that the network doesn't conflict with any existing network setting. More...
 
void EPS::raise_tun_tap_interface (const uint32_t ip_address_in_network_order, std::string &device_name, FILE_HANDLE_DESCRIPTOR &device_fd)
 Raise the expected TUN/TAP interface. More...
 
void EPS::set_tun_tap_routes (const uint32_t &network_in_network_order, const uint32_t &netmask_in_network_order, const std::string &device_name)
 Setup a route for the TUN/TAP interface. More...
 
void EPS::close_tun_tap_interface (std::string &device_name, FILE_HANDLE_DESCRIPTOR &device_fd)
 Cleanly shut down the TUN/TAP interface. More...