Watt-32 tcp/ip  2.2 dev-rel.10
Data Structures | Enumerations | Functions | Variables
pcdns.h File Reference

Go to the source code of this file.

Data Structures

struct  DNS_head
 
struct  DNS_Header
 Another definition of 'struct DNS_head'. More...
 
struct  DNS_query
 
struct  DNS_Query
 
struct  DNS_resource
 

Enumerations

enum  DNS_serv_resp {
  DNS_SRV_OK = 0,
  DNS_SRV_FORM,
  DNS_SRV_FAIL,
  DNS_SRV_NAME,
  DNS_SRV_NOTIMPL,
  DNS_SRV_REFUSE,
  DNS_SRV_MAX = 15
}
 
enum  DNS_client_code {
  DNS_CLI_SYSTEM = DNS_SRV_MAX,
  DNS_CLI_REFUSE,
  DNS_CLI_USERQUIT,
  DNS_CLI_NOSERV,
  DNS_CLI_TIMEOUT,
  DNS_CLI_ILL_RESP,
  DNS_CLI_ILL_IDNA,
  DNS_CLI_TOOBIG,
  DNS_CLI_NOIP,
  DNS_CLI_NOIPV6,
  DNS_CLI_OTHER,
  DNS_CLI_MAX
}
 

Functions

int reverse_lookup_myip (void)
 Do a reverse lookup on `my_ip_addr'. More...
 
int reverse_resolve_ip4 (DWORD ipv4, char *result, size_t size)
 
int reverse_resolve_ip6 (const void *ipv6, char *result, size_t size)
 

Variables

char dom_cname [MAX_HOSTLEN+1]
 
DWORD dom_ttl
 
BOOL dns_do_ipv6
 
BOOL dns_do_idna
 
WORD dns_windns
 
BOOL called_from_resolve
 Hacks to make gethostbyname() and resolve() cooperate.
 
BOOL called_from_ghbn
 
BOOL from_windns
 
DWORD dom_a4list [MAX_ADDRESSES+1]
 
ip6_address dom_a6list [MAX_ADDRESSES+1]
 

Function Documentation

int reverse_lookup_myip ( void  )

Do a reverse lookup on `my_ip_addr'.

If successfull, replace `hostname' and `def_domain' with returned result.

Definition at line 176 of file udp_rev.c.

References my_ip_addr, and sethostname().