#include "tcp_sponge_socket.hh"
#include "network_interface.hh"
#include "parser.hh"
#include "tun.hh"
#include "util.hh"
#include <cstddef>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <string>
#include <sys/socket.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <utility>
Go to the source code of this file.
◆ random_private_ethernet_address()
◆ socket_pair_helper()
Call socketpair and return connected Unix-domain sockets of specified type.
- Parameters
-
[in] | type | is the type of AF_UNIX sockets to create (e.g., SOCK_SEQPACKET) |
- Returns
- a std::pair of connected sockets
Definition at line 168 of file tcp_sponge_socket.cc.
◆ LOCAL_TAP_IP_ADDRESS
const string LOCAL_TAP_IP_ADDRESS = "169.254.10.9" |
|
static |
◆ LOCAL_TAP_NEXT_HOP_ADDRESS
const string LOCAL_TAP_NEXT_HOP_ADDRESS = "169.254.10.1" |
|
static |
◆ TCP_TICK_MS
constexpr size_t TCP_TICK_MS = 10 |
|
staticconstexpr |