ze-filter
(ze-filter-0.8.0-develop-180218)
|
Classes | |
struct | client_T |
struct | DNS_HOST_T |
struct | DNS_HOSTARR_T |
struct | DNS_QUERY_T |
struct | MX_RECORD_T |
struct | SRV_RECORDT_T |
struct | resource_record |
struct | DNS_REPLY_T |
struct | ipv6_T |
Macros | |
#define | CLIENT_SPEC_LEN 512 |
#define | CLIENT_INITIALIZER |
#define | MAX_HOST 128 |
#define | NETINET6 1 |
#define | T_TXT 16 |
#define | T_AFSDB 18 |
#define | T_SRV 33 |
#define | T_NAPTR 35 |
#define | DNS_NO_ERR 0 |
#define | DNS_ERR_TMPFAIL -1 |
#define | DNS_ERR_NOTFOUND -2 |
#define | DNS_ERR_SRV -3 |
#define | DNS_LOC_ERR -4 |
#define | IPV6_PREFIX_MAX 64 |
#define | IPV6_PREFIX_MIN 32 |
#define | IPV6_PREFIX_STEP 4 |
#define | ZE_SOCK_READ 1 |
#define | ZE_SOCK_WRITE 0 |
#define | ZE_SOCK_ERROR -1 |
#define | ZE_SOCK_READY 0 |
#define | ZE_SOCK_TIMEOUT 1 |
Typedefs | |
typedef struct DNS_HOST_T | DNS_HOST_T |
typedef struct DNS_HOSTARR_T | DNS_HOSTARR_T |
typedef struct resource_record | RR_RECORD_T |
typedef int | HEADER |
Functions | |
int | client_connect (client_T *client, char *spec, int to) |
bool | client_disconnect (client_T *client, bool incerr) |
bool | client_send (client_T *client, char *buf, size_t size) |
bool | client_recv (client_T *client, char *buf, size_t size) |
bool | client_readln (client_T *client, char *buf, size_t size) |
int | connect_timed (int, struct sockaddr *, socklen_t, int) |
void | dns_free_hostarr (DNS_HOSTARR_T *mx) |
int | dns_get_a (char *domain, DNS_HOSTARR_T *a) |
int | dns_get_aaaa (char *domain, DNS_HOSTARR_T *a) |
int | dns_get_mx (char *domain, DNS_HOSTARR_T *mx) |
void | print_dns_reply (DNS_REPLY_T *r, int level) |
void | dns_free_data (DNS_REPLY_T *) |
int | dns_string_to_type (const char *) |
const char * | dns_type_to_string (int) |
int | dns_lookup (const char *domain, const char *type_name, time_t retrans, int retry, DNS_REPLY_T *) |
bool | ipv6_check_net (ipv6_T *net, ipv6_T *addr) |
bool | ipv6_str2rec (ipv6_T *ipv6, char *sin) |
void | ipv6_rec2str (char *sout, ipv6_T *ipv6, size_t sz) |
void | ipv6_expand (char *sout, char *sin, size_t size) |
void | ipv6_set_prefix (ipv6_T *addr, int prefix) |
void | ipv6_subnet (ipv6_T *net, ipv6_T *addr) |
void | ipv6_prefix_str (ipv6_T *addr, char *buf, size_t size, int n) |
char * | jinet_ntop (int, void *, char *, size_t) |
int | jinet_pton (int, char *, void *) |
bool | jsock_ntop (struct sockaddr *, socklen_t, char *, size_t) |
int | ip_strcmp (char *, char *) |
bool | get_hostname (char *, size_t) |
bool | get_hostbyaddr (char *ip, char *name, int len) |
bool | get_hostbyname (char *name, char *ip, int len) |
char * | inet_n2p (int, void *, char *, size_t) |
int | inet_p2n (int, char *, void *) |
bool | get_hostbysock (struct sockaddr *sock, socklen_t slen, char *addr, size_t alen, char *name, size_t nlen) |
int | Ip_strcmp (char *, char *) |
int | jfd_ready (int, bool, long) |
bool | sd_printf (int sd, char *format,...) |
int | sd_readln (int fd, char *buf, size_t size) |
Variables | |
bool | dns_lock |
Network functions
#define CLIENT_INITIALIZER |
Definition at line 53 of file ze-client.h.
#define CLIENT_SPEC_LEN 512 |
Definition at line 32 of file ze-client.h.
#define MAX_HOST 128 |
Definition at line 33 of file ze-dns-parse.h.
typedef struct DNS_HOST_T DNS_HOST_T |
typedef struct DNS_HOSTARR_T DNS_HOSTARR_T |
typedef struct resource_record RR_RECORD_T |
int client_connect | ( | client_T * | client, |
char * | spec, | ||
int | to | ||
) |
Definition at line 126 of file ze-client.c.
Definition at line 231 of file ze-client.c.
Definition at line 447 of file ze-client.c.
Definition at line 355 of file ze-client.c.
Definition at line 263 of file ze-client.c.
int connect_timed | ( | int | , |
struct sockaddr * | , | ||
socklen_t | , | ||
int | |||
) |
Definition at line 639 of file ze-client.c.
void dns_free_data | ( | DNS_REPLY_T * | ) |
void dns_free_hostarr | ( | DNS_HOSTARR_T * | mx | ) |
Definition at line 89 of file ze-dns-parse.c.
int dns_get_a | ( | char * | domain, |
DNS_HOSTARR_T * | a | ||
) |
Definition at line 153 of file ze-dns-parse.c.
int dns_get_aaaa | ( | char * | domain, |
DNS_HOSTARR_T * | a | ||
) |
Definition at line 226 of file ze-dns-parse.c.
int dns_get_mx | ( | char * | domain, |
DNS_HOSTARR_T * | mx | ||
) |
Definition at line 357 of file ze-dns-parse.c.
int dns_lookup | ( | const char * | domain, |
const char * | type_name, | ||
time_t | retrans, | ||
int | retry, | ||
DNS_REPLY_T * | |||
) |
int dns_string_to_type | ( | const char * | ) |
int inet_p2n | ( | int | , |
char * | , | ||
void * | |||
) |
void ipv6_prefix_str | ( | ipv6_T * | addr, |
char * | buf, | ||
size_t | size, | ||
int | n | ||
) |
void ipv6_rec2str | ( | char * | sout, |
ipv6_T * | ipv6, | ||
size_t | sz | ||
) |
int jinet_pton | ( | int | , |
char * | , | ||
void * | |||
) |
void print_dns_reply | ( | DNS_REPLY_T * | r, |
int | level | ||
) |
Definition at line 393 of file ze-dns-parse.c.
bool dns_lock |