C-ares based dns query support. Handles name- and ip-based resolution.
|
enum class | ip_protocol_num : uint8_t { icmp = 1
, tcp = 6
, udp = 17
, unused = 255
} |
|
enum class | eth_protocol_num : uint16_t { ipv4 = 0x0800
, arp = 0x0806
, ipv6 = 0x86dd
} |
|
enum class | tcp_state : uint16_t {
CLOSED = (1 << 0)
, LISTEN = (1 << 1)
, SYN_SENT = (1 << 2)
, SYN_RECEIVED = (1 << 3)
,
ESTABLISHED = (1 << 4)
, FIN_WAIT_1 = (1 << 5)
, FIN_WAIT_2 = (1 << 6)
, CLOSE_WAIT = (1 << 7)
,
CLOSING = (1 << 8)
, LAST_ACK = (1 << 9)
, TIME_WAIT = (1 << 10)
} |
|
|
void | ntoh () |
|
void | hton () |
|
uint8_t | ntoh (uint8_t x) |
|
uint8_t | hton (uint8_t x) |
|
uint16_t | ntoh (uint16_t x) |
|
uint16_t | hton (uint16_t x) |
|
uint32_t | ntoh (uint32_t x) |
|
uint32_t | hton (uint32_t x) |
|
uint64_t | ntoh (uint64_t x) |
|
uint64_t | hton (uint64_t x) |
|
int8_t | ntoh (int8_t x) |
|
int8_t | hton (int8_t x) |
|
int16_t | ntoh (int16_t x) |
|
int16_t | hton (int16_t x) |
|
int32_t | ntoh (int32_t x) |
|
int32_t | hton (int32_t x) |
|
int64_t | ntoh (int64_t x) |
|
int64_t | hton (int64_t x) |
|
template<typename T > |
T | ntoh (const packed< T > &x) |
|
template<typename T > |
T | hton (const packed< T > &x) |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &os, const packed< T > &v) |
|
void | ntoh_inplace () |
|
void | hton_inplace () |
|
template<typename First , typename... Rest> |
void | ntoh_inplace (First &first, Rest &... rest) |
|
template<typename First , typename... Rest> |
void | hton_inplace (First &first, Rest &... rest) |
|
template<class T > |
T | ntoh (const T &x) |
|
template<class T > |
T | hton (const T &x) |
|
std::unordered_map< std::string, device_config > | parse_config (std::istream &input) |
|
struct seastar::net::ethernet_address | __attribute__ ((packed)) |
|
std::ostream & | operator<< (std::ostream &os, ethernet_address ea) |
|
ethernet_address | parse_ethernet_address (std::string addr) |
|
std::ostream & | operator<< (std::ostream &, const inet_address &) |
|
std::ostream & | operator<< (std::ostream &, const inet_address::family &) |
|
void | arp_learn (ethernet_address l2, ipv4_address l3) |
|
uint16_t | ip_checksum (const void *data, size_t len) |
|
bool | is_unspecified (ipv4_address addr) noexcept |
|
std::ostream & | operator<< (std::ostream &os, const ipv4_address &a) |
|
std::ostream & | operator<< (std::ostream &, const ipv6_address &) |
|
void | create_native_stack (const native_stack_options &opts, std::shared_ptr< device > dev) |
|
network_stack_entry | register_native_stack () |
|
static input_stream< char > | as_input_stream (packet &&p) |
|
std::ostream & | operator<< (std::ostream &os, const packet &p) |
|
network_stack_entry | register_posix_stack () |
|
std::unique_ptr< qp > | create_proxy_net_device (unsigned master_cpu, device *dev) |
|
server_socket | tcpv4_listen (tcp< ipv4_traits > &tcpv4, uint16_t port, listen_options opts) |
|
seastar::socket | tcpv4_socket (tcp< ipv4_traits > &tcpv4) |
|
auto | tcp_error (int err) |
|
auto | tcp_reset_error () |
|
auto | tcp_connect_error () |
|
auto | tcp_refused_error () |
|
tcp_state | operator| (tcp_state s1, tcp_state s2) |
|
template<typename... Args> |
void | tcp_debug (const char *fmt, Args &&... args) |
|
char *& | operator+= (char *&x, tcp_option::option_len len) |
|
const char *& | operator+= (const char *&x, tcp_option::option_len len) |
|
uint8_t & | operator+= (uint8_t &x, tcp_option::option_len len) |
|
tcp_seq | ntoh (tcp_seq s) |
|
tcp_seq | hton (tcp_seq s) |
|
std::ostream & | operator<< (std::ostream &os, tcp_seq s) |
|
tcp_seq | make_seq (uint32_t raw) |
|
tcp_seq & | operator+= (tcp_seq &s, int32_t n) |
|
tcp_seq & | operator-= (tcp_seq &s, int32_t n) |
|
tcp_seq | operator+ (tcp_seq s, int32_t n) |
|
tcp_seq | operator- (tcp_seq s, int32_t n) |
|
int32_t | operator- (tcp_seq s, tcp_seq q) |
|
bool | operator== (tcp_seq s, tcp_seq q) |
|
bool | operator!= (tcp_seq s, tcp_seq q) |
|
bool | operator< (tcp_seq s, tcp_seq q) |
|
bool | operator> (tcp_seq s, tcp_seq q) |
|
bool | operator<= (tcp_seq s, tcp_seq q) |
|
bool | operator>= (tcp_seq s, tcp_seq q) |
|