#include "ares_setup.h"
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include "ares.h"
#include "ares_getopt.h"
#include "ares_nowarn.h"
#include "ares_strdup.h"
#include "ares_strcasecmp.h"
Go to the source code of this file.
|
| static void | Abort (const char *fmt,...) |
| |
| static void | callback (void *arg, int status, int timeouts, struct hostent *host) |
| |
| static void | callback2 (void *arg, int status, int timeouts, struct hostent *host) |
| |
| static void | find_country_from_cname (const char *cname, struct in_addr addr) |
| |
| static int | is_addr (char *str, char **end) |
| |
| static const struct search_list * | list_lookup (int number, const struct search_list *list, int num) |
| |
| int | main (int argc, char **argv) |
| |
| static void | print_help_info_acountry (void) |
| |
| static void | wait_ares (ares_channel channel) |
| |
◆ BYTE_OK
| #define BYTE_OK |
( |
|
x | ) |
((x) >= 0 && (x) <= 255) |
◆ CARES_INADDR_CAST
| #define CARES_INADDR_CAST |
( |
|
type, |
|
|
|
var |
|
) |
| ((type)((void *)var)) |
◆ INADDR_NONE
| #define INADDR_NONE 0xffffffff |
◆ strcasecmp
◆ strdup
◆ strncasecmp
◆ TRACE
◆ Abort()
| static void Abort |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
static |
◆ callback()
| static void callback |
( |
void * |
arg, |
|
|
int |
status, |
|
|
int |
timeouts, |
|
|
struct hostent * |
host |
|
) |
| |
|
static |
◆ callback2()
| static void callback2 |
( |
void * |
arg, |
|
|
int |
status, |
|
|
int |
timeouts, |
|
|
struct hostent * |
host |
|
) |
| |
|
static |
◆ find_country_from_cname()
| static void find_country_from_cname |
( |
const char * |
cname, |
|
|
struct in_addr |
addr |
|
) |
| |
|
static |
◆ is_addr()
| static int is_addr |
( |
char * |
str, |
|
|
char ** |
end |
|
) |
| |
|
static |
◆ list_lookup()
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ print_help_info_acountry()
| static void print_help_info_acountry |
( |
void |
| ) |
|
|
static |
◆ wait_ares()
◆ country_list
◆ nerd_fmt
| const char nerd_fmt[] = "%u.%u.%u.%u.zz.countries.nerd.dk" |
|
static |
◆ nerd_ver1
◆ nerd_ver2
◆ usage
| const char* usage = "acountry [-?hdv] {host|addr} ...\n" |
|
static |
◆ verbose