FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | dns_pending_request_t |
struct | dns_cache_entry_t |
struct | dns_main_t |
Macros | |
#define | DNS_CACHE_ENTRY_FLAG_VALID (1<<0) |
we have Actual Data More... | |
#define | DNS_CACHE_ENTRY_FLAG_STATIC (1<<1) |
static entry More... | |
#define | DNS_CACHE_ENTRY_FLAG_CNAME (1<<2) |
CNAME (indirect) entry. More... | |
#define | DNS_RETRIES_PER_SERVER 3 |
#define | DNS_RESOLVER_EVENT_RESOLVED 1 |
#define | DNS_RESOLVER_EVENT_PENDING 2 |
#define | foreach_dns46_request_error |
#define | foreach_dns46_reply_error |
Enumerations | |
enum | dns_pending_request_type_t { DNS_API_PENDING_NAME_TO_IP = 1, DNS_API_PENDING_IP_TO_NAME, DNS_PEER_PENDING_NAME_TO_IP, DNS_PEER_PENDING_IP_TO_NAME } |
enum | dns46_request_error_t { DNS46_REQUEST_N_ERROR } |
enum | dns46_reply_error_t { DNS46_REPLY_N_ERROR } |
Functions | |
void | vnet_send_dns_request (dns_main_t *dm, dns_cache_entry_t *ep) |
int | vnet_dns_cname_indirection_nolock (dns_main_t *dm, u32 ep_index, u8 *reply) |
Handle cname indirection. More... | |
int | vnet_dns_delete_entry_by_index_nolock (dns_main_t *dm, u32 index) |
int | vnet_dns_resolve_name (dns_main_t *dm, u8 *name, dns_pending_request_t *t, dns_cache_entry_t **retp) |
void | vnet_dns_send_dns6_request (dns_main_t *dm, dns_cache_entry_t *ep, ip6_address_t *server) |
void | vnet_dns_send_dns4_request (dns_main_t *dm, dns_cache_entry_t *ep, ip4_address_t *server) |
void | vnet_send_dns4_reply (dns_main_t *dm, dns_pending_request_t *t, dns_cache_entry_t *ep, vlib_buffer_t *b0) |
void | vnet_send_dns6_reply (dns_main_t *dm, dns_pending_request_t *t, dns_cache_entry_t *ep, vlib_buffer_t *b0) |
u8 * | vnet_dns_labels_to_name (u8 *label, u8 *full_text, u8 **parse_from_here) |
arc-function for the above. More... | |
static void | dns_cache_lock (dns_main_t *dm) |
static void | dns_cache_unlock (dns_main_t *dm) |
Variables | |
dns_main_t | dns_main |
vlib_node_registration_t | dns46_reply_node |
(constructor) VLIB_REGISTER_NODE (dns46_reply_node) More... | |
vlib_node_registration_t | dns4_request_node |
(constructor) VLIB_REGISTER_NODE (dns4_request_node) More... | |
vlib_node_registration_t | dns6_request_node |
(constructor) VLIB_REGISTER_NODE (dns6_request_node) More... | |
vlib_node_registration_t | dns_resolver_node |
(constructor) VLIB_REGISTER_NODE (dns_resolver_node) More... | |
format_function_t | format_dns_reply |
#define DNS_CACHE_ENTRY_FLAG_CNAME (1<<2) |
#define foreach_dns46_reply_error |
#define foreach_dns46_request_error |
enum dns46_reply_error_t |
|
inlinestatic |
|
inlinestatic |
int vnet_dns_cname_indirection_nolock | ( | dns_main_t * | dm, |
u32 | ep_index, | ||
u8 * | reply | ||
) |
int vnet_dns_delete_entry_by_index_nolock | ( | dns_main_t * | dm, |
u32 | index | ||
) |
int vnet_dns_resolve_name | ( | dns_main_t * | dm, |
u8 * | name, | ||
dns_pending_request_t * | t, | ||
dns_cache_entry_t ** | retp | ||
) |
void vnet_dns_send_dns4_request | ( | dns_main_t * | dm, |
dns_cache_entry_t * | ep, | ||
ip4_address_t * | server | ||
) |
void vnet_dns_send_dns6_request | ( | dns_main_t * | dm, |
dns_cache_entry_t * | ep, | ||
ip6_address_t * | server | ||
) |
void vnet_send_dns4_reply | ( | dns_main_t * | dm, |
dns_pending_request_t * | t, | ||
dns_cache_entry_t * | ep, | ||
vlib_buffer_t * | b0 | ||
) |
void vnet_send_dns6_reply | ( | dns_main_t * | dm, |
dns_pending_request_t * | t, | ||
dns_cache_entry_t * | ep, | ||
vlib_buffer_t * | b0 | ||
) |
void vnet_send_dns_request | ( | dns_main_t * | dm, |
dns_cache_entry_t * | ep | ||
) |
vlib_node_registration_t dns46_reply_node |
(constructor) VLIB_REGISTER_NODE (dns46_reply_node)
Definition at line 42 of file reply_node.c.
vlib_node_registration_t dns4_request_node |
(constructor) VLIB_REGISTER_NODE (dns4_request_node)
Definition at line 293 of file request_node.c.
vlib_node_registration_t dns6_request_node |
(constructor) VLIB_REGISTER_NODE (dns6_request_node)
Definition at line 320 of file request_node.c.
dns_main_t dns_main |
vlib_node_registration_t dns_resolver_node |
(constructor) VLIB_REGISTER_NODE (dns_resolver_node)
Definition at line 326 of file resolver_process.c.
format_function_t format_dns_reply |