#include <stdio.h>
#include <stdlib.h>
#include "dnshandler.h"
Defines | |
| #define | DNSHDR_GET_ID(hptr) ((u_int16_t *)(hptr)) /* ptr to ID */ |
| #define | DNSHDR_GET_RCODE(hptr) (( ((hptr)[4]) & 0xf0 ) >> 4) /* extract RCODE */ |
Functions | |
| aw_dnshandler_t * | aw_create_dnshandler (const aw_dnshandler_events_t *events, const byte_t *hostname, aw_timestamp_t timeout, u_int32_t maxretries, int32_t(*regevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), int32_t(*regmaskevent)(aw_handler_t *h, aw_address_t *eventid, u_int32_t index), const aw_alarm_sched_t *sched, aw_logger_t *logger) |
| Create a dnshandler. | |
| void | aw_free_dnshandler (aw_dnshandler_t *h) |
| Free handler and all associated resources. | |
| aw_handler_t * | aw_wire_dnshandler (aw_wire_mkhandler_args_t *args) |
| Create a dns handler using "wire". See header doc for keyword documentation. | |
|
|
|
|
|
|
|
||||||||||||||||||||||||||||||||||||
|
Create a dnshandler. aw_create_dnshandler
|
|
|
Free handler and all associated resources. aw_free_dnshandler
|
|
|
Create a dns handler using "wire". See header doc for keyword documentation. aw_wire_dnshandler |