|
Hybrid ICN (hICN) plugin
v21.06-rc0-4-g18fa668
|
IP address type. More...
#include <errno.h>#include <netinet/in.h>#include <arpa/inet.h>#include <netdb.h>#include <stdbool.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "types.h"
Go to the source code of this file.
Classes | |
| union | ip_address_t |
| struct | ip_prefix_t |
Functions | |
| int | ip_address_get_family (const char *ip_address) |
| int | ip_address_len (int family) |
| const u8 * | ip_address_get_buffer (const ip_address_t *ip_address, int family) |
| int | ip_address_ntop (const ip_address_t *ip_address, char *dst, const size_t len, int family) |
| int | ip_address_pton (const char *ip_address_str, ip_address_t *ip_address) |
| int | ip_address_snprintf (char *s, size_t size, const ip_address_t *ip_address, int family) |
| int | ip_address_to_sockaddr (const ip_address_t *ip_address, struct sockaddr *sa, int family) |
| int | ip_address_cmp (const ip_address_t *ip1, const ip_address_t *ip2, int family) |
| int | ip_address_empty (const ip_address_t *ip) |
| int | ip_prefix_pton (const char *ip_address_str, ip_prefix_t *ip_prefix) |
| int | ip_prefix_ntop_short (const ip_prefix_t *ip_prefix, char *dst, size_t size) |
| int | ip_prefix_ntop (const ip_prefix_t *ip_prefix, char *dst, size_t size) |
| int | ip_prefix_len (const ip_prefix_t *prefix) |
| bool | ip_prefix_empty (const ip_prefix_t *prefix) |
| int | ip_prefix_to_sockaddr (const ip_prefix_t *prefix, struct sockaddr *sa) |
| int | ip_prefix_cmp (const ip_prefix_t *prefix1, const ip_prefix_t *prefix2) |
| int | url_snprintf (char *s, size_t size, int family, const ip_address_t *ip_address, u16 port) |
Variables | |
| const ip_address_t | IPV4_LOOPBACK |
| const ip_address_t | IPV6_LOOPBACK |
| const ip_address_t | IPV4_ANY |
| const ip_address_t | IPV6_ANY |
| const ip_address_t | IP_ADDRESS_EMPTY |
IP address type.
1.8.17