sipxtacklib
Version 3.3
|
#include <sys/types.h>
#include <stdio.h>
#include <winsock2.h>
Go to the source code of this file.
Classes | |
struct | __res_state |
Macros | |
#define | __RES 19951031 |
#define | _PATH_RESCONF "/etc/resolv.conf" |
#define | MAXNS 3 /* max # name servers we'll track */ |
#define | MAXDFLSRCH 3 /* # default domain levels to try */ |
#define | MAXDNSRCH 6 /* max # domains in search path */ |
#define | LOCALDOMAINPARTS 2 /* min levels in name that is "local" */ |
#define | MAXDNSLUS 4 /* max # of host lookup types */ |
#define | RES_TIMEOUT 5 /* min. seconds between retries */ |
#define | MAXRESOLVSORT 10 /* number of net to sort on */ |
#define | RES_MAXNDOTS 15 /* should reflect bit field size */ |
#define | nsaddr nsaddr_list[0] /* for backward compatibility */ |
#define | RES_INIT 0x00000001 /* address initialized */ |
#define | RES_DEBUG 0x00000002 /* print debug messages */ |
#define | RES_AAONLY 0x00000004 /* authoritative answers only (!IMPL)*/ |
#define | RES_USEVC 0x00000008 /* use virtual circuit */ |
#define | RES_PRIMARY 0x00000010 /* query primary server only (!IMPL) */ |
#define | RES_IGNTC 0x00000020 /* ignore trucation errors */ |
#define | RES_RECURSE 0x00000040 /* recursion desired */ |
#define | RES_DEFNAMES 0x00000080 /* use default domain name */ |
#define | RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ |
#define | RES_DNSRCH 0x00000200 /* search up local domain tree */ |
#define | RES_INSECURE1 0x00000400 /* type 1 security disabled */ |
#define | RES_INSECURE2 0x00000800 /* type 2 security disabled */ |
#define | RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */ |
#define | RES_USE_INET6 0x00002000 /* use/map IPv6 in gethostbyname() */ |
#define | RES_NOTLDQUERY 0x00000000 /* do not know where to find it */ |
#define | RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) |
#define | RES_PRF_STATS 0x00000001 |
#define | RES_PRF_CLASS 0x00000004 |
#define | RES_PRF_CMD 0x00000008 |
#define | RES_PRF_QUES 0x00000010 |
#define | RES_PRF_ANS 0x00000020 |
#define | RES_PRF_AUTH 0x00000040 |
#define | RES_PRF_ADD 0x00000080 |
#define | RES_PRF_HEAD1 0x00000100 |
#define | RES_PRF_HEAD2 0x00000200 |
#define | RES_PRF_TTLID 0x00000400 |
#define | RES_PRF_HEADX 0x00000800 |
#define | RES_PRF_QUERY 0x00001000 |
#define | RES_PRF_REPLY 0x00002000 |
#define | RES_PRF_INIT 0x00004000 |
#define | __P(x) () |
#define | dn_skipname __dn_skipname |
#define | fp_query __fp_query |
#define | fp_nquery __fp_nquery |
#define | hostalias __hostalias |
#define | putlong __putlong |
#define | putshort __putshort |
#define | p_class __p_class |
#define | p_time __p_time |
#define | p_type __p_type |
#define | p_cdnname __p_cdnname |
#define | p_cdname __p_cdname |
#define | p_fqname __p_fqname |
#define | p_rr __p_rr |
#define | p_option __p_option |
#define | res_randomid __res_randomid |
#define | res_isourserver __res_isourserver |
#define | res_nameinquery __res_nameinquery |
#define | res_queriesmatch __res_queriesmatch |
Typedefs | |
typedef res_sendhookact(* | res_send_qhook) (struct sockaddr_in *const *ns, const u_char **query, int *querylen, u_char *ans, int anssiz, int *resplen) |
typedef res_sendhookact(* | res_send_rhook) (const struct sockaddr_in *ns, const u_char *query, int querylen, u_char *ans, int anssiz, int *resplen) |
Enumerations | |
enum | res_sendhookact { res_goahead, res_nextns, res_modified, res_done, res_error } |
Functions | |
int | __dn_skipname (const u_char *, const u_char *) |
void | __fp_resstat (struct __res_state *, FILE *) |
void | __fp_query (const u_char *, FILE *) |
void | __fp_nquery (const u_char *, int, FILE *) |
char * | __hostalias (const char *) |
void | __putlong (u_int32, u_char *) |
void | __putshort (u_int16, u_char *) |
char * | __p_time (u_int32) |
void | __p_query (const u_char *) |
const u_char * | __p_cdnname (const u_char *, const u_char *, int, FILE *) |
const u_char * | __p_cdname (const u_char *, const u_char *, FILE *) |
const u_char * | __p_fqname (const u_char *, const u_char *, FILE *) |
const u_char * | __p_rr (const u_char *, const u_char *, FILE *) |
const char * | __p_type (int) |
const char * | __p_class (int) |
const char * | __p_option (u_long option) |
int | dn_comp (const char *, u_char *, int, u_char **, u_char **) |
int | dn_expand (const u_char *, const u_char *, const u_char *, char *, int) |
int | res_init (void) |
int | res_init_ip (const char *szIp) |
u_int16 | res_randomid (void) |
int | res_query (const char *, int, int, u_char *, int) |
int | res_search (const char *, int, int, u_char *, int) |
int | res_local_querydomain (const char *, const char *, int, int, u_char *, int) |
int | res_mkquery (int, const char *, int, int, const u_char *, int, const u_char *, u_char *, int) |
int | res_send (const u_char *, int, u_char *, int) |
int | res_isourserver (const struct sockaddr_in *) |
int | res_nameinquery (const char *, int, int, const u_char *, const u_char *) |
int | res_queriesmatch (const u_char *, const u_char *, const u_char *, const u_char *) |
u_int | inet_nsap_addr (const char *, u_char *, int maxlen) |
char * | inet_nsap_ntoa (int, const u_char *, char *ascii) |
Variables | |
struct __res_state | _sip_res |
#define __RES 19951031 |
#define _PATH_RESCONF "/etc/resolv.conf" |
#define MAXNS 3 /* max # name servers we'll track */ |
#define MAXDFLSRCH 3 /* # default domain levels to try */ |
#define MAXDNSRCH 6 /* max # domains in search path */ |
#define LOCALDOMAINPARTS 2 /* min levels in name that is "local" */ |
#define MAXDNSLUS 4 /* max # of host lookup types */ |
#define RES_TIMEOUT 5 /* min. seconds between retries */ |
#define MAXRESOLVSORT 10 /* number of net to sort on */ |
#define RES_MAXNDOTS 15 /* should reflect bit field size */ |
#define nsaddr nsaddr_list[0] /* for backward compatibility */ |
#define RES_INIT 0x00000001 /* address initialized */ |
#define RES_DEBUG 0x00000002 /* print debug messages */ |
#define RES_AAONLY 0x00000004 /* authoritative answers only (!IMPL)*/ |
#define RES_USEVC 0x00000008 /* use virtual circuit */ |
#define RES_PRIMARY 0x00000010 /* query primary server only (!IMPL) */ |
#define RES_IGNTC 0x00000020 /* ignore trucation errors */ |
#define RES_RECURSE 0x00000040 /* recursion desired */ |
#define RES_DEFNAMES 0x00000080 /* use default domain name */ |
#define RES_STAYOPEN 0x00000100 /* Keep TCP socket open */ |
#define RES_DNSRCH 0x00000200 /* search up local domain tree */ |
#define RES_INSECURE1 0x00000400 /* type 1 security disabled */ |
#define RES_INSECURE2 0x00000800 /* type 2 security disabled */ |
#define RES_NOALIASES 0x00001000 /* shuts off HOSTALIASES feature */ |
#define RES_USE_INET6 0x00002000 /* use/map IPv6 in gethostbyname() */ |
#define RES_NOTLDQUERY 0x00000000 /* do not know where to find it */ |
#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) |
#define RES_PRF_STATS 0x00000001 |
#define RES_PRF_CLASS 0x00000004 |
#define RES_PRF_CMD 0x00000008 |
#define RES_PRF_QUES 0x00000010 |
#define RES_PRF_ANS 0x00000020 |
#define RES_PRF_AUTH 0x00000040 |
#define RES_PRF_ADD 0x00000080 |
#define RES_PRF_HEAD1 0x00000100 |
#define RES_PRF_HEAD2 0x00000200 |
#define RES_PRF_TTLID 0x00000400 |
#define RES_PRF_HEADX 0x00000800 |
#define RES_PRF_QUERY 0x00001000 |
#define RES_PRF_REPLY 0x00002000 |
#define RES_PRF_INIT 0x00004000 |
#define __P | ( | x | ) | () |
#define dn_skipname __dn_skipname |
#define fp_query __fp_query |
#define fp_nquery __fp_nquery |
#define hostalias __hostalias |
#define putlong __putlong |
#define putshort __putshort |
#define p_class __p_class |
#define p_time __p_time |
#define p_type __p_type |
#define p_cdnname __p_cdnname |
#define p_cdname __p_cdname |
#define p_fqname __p_fqname |
#define p_rr __p_rr |
#define p_option __p_option |
#define res_randomid __res_randomid |
#define res_isourserver __res_isourserver |
#define res_nameinquery __res_nameinquery |
#define res_queriesmatch __res_queriesmatch |
typedef res_sendhookact(* res_send_qhook) (struct sockaddr_in *const *ns, const u_char **query, int *querylen, u_char *ans, int anssiz, int *resplen) |
typedef res_sendhookact(* res_send_rhook) (const struct sockaddr_in *ns, const u_char *query, int querylen, u_char *ans, int anssiz, int *resplen) |
enum res_sendhookact |
int __dn_skipname | ( | const u_char * | , |
const u_char * | |||
) |
void __fp_resstat | ( | struct __res_state * | , |
FILE * | |||
) |
void __fp_query | ( | const u_char * | , |
FILE * | |||
) |
void __fp_nquery | ( | const u_char * | , |
int | , | ||
FILE * | |||
) |
char* __hostalias | ( | const char * | ) |
void __putlong | ( | u_int32 | , |
u_char * | |||
) |
void __putshort | ( | u_int16 | , |
u_char * | |||
) |
char* __p_time | ( | u_int32 | ) |
void __p_query | ( | const u_char * | ) |
const u_char* __p_cdnname | ( | const u_char * | , |
const u_char * | , | ||
int | , | ||
FILE * | |||
) |
const u_char* __p_cdname | ( | const u_char * | , |
const u_char * | , | ||
FILE * | |||
) |
const u_char* __p_fqname | ( | const u_char * | , |
const u_char * | , | ||
FILE * | |||
) |
const u_char* __p_rr | ( | const u_char * | , |
const u_char * | , | ||
FILE * | |||
) |
const char* __p_type | ( | int | ) |
const char* __p_class | ( | int | ) |
const char* __p_option | ( | u_long | option | ) |
int dn_comp | ( | const char * | , |
u_char * | , | ||
int | , | ||
u_char ** | , | ||
u_char ** | |||
) |
int dn_expand | ( | const u_char * | , |
const u_char * | , | ||
const u_char * | , | ||
char * | , | ||
int | |||
) |
int res_init | ( | void | ) |
int res_init_ip | ( | const char * | szIp | ) |
u_int16 res_randomid | ( | void | ) |
int res_query | ( | const char * | , |
int | , | ||
int | , | ||
u_char * | , | ||
int | |||
) |
int res_search | ( | const char * | , |
int | , | ||
int | , | ||
u_char * | , | ||
int | |||
) |
int res_local_querydomain | ( | const char * | , |
const char * | , | ||
int | , | ||
int | , | ||
u_char * | , | ||
int | |||
) |
int res_mkquery | ( | int | , |
const char * | , | ||
int | , | ||
int | , | ||
const u_char * | , | ||
int | , | ||
const u_char * | , | ||
u_char * | , | ||
int | |||
) |
int res_send | ( | const u_char * | , |
int | , | ||
u_char * | , | ||
int | |||
) |
int res_isourserver | ( | const struct sockaddr_in * | ) |
int res_nameinquery | ( | const char * | , |
int | , | ||
int | , | ||
const u_char * | , | ||
const u_char * | |||
) |
int res_queriesmatch | ( | const u_char * | , |
const u_char * | , | ||
const u_char * | , | ||
const u_char * | |||
) |
u_int inet_nsap_addr | ( | const char * | , |
u_char * | , | ||
int | maxlen | ||
) |
char* inet_nsap_ntoa | ( | int | , |
const u_char * | , | ||
char * | ascii | ||
) |
struct __res_state _sip_res |