#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "nss_gns_query.h"
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
Go to the source code of this file.
Macros | |
#define | TIMEOUT "5s" |
Functions | |
static void | kwait (pid_t chld) |
int | gns_resolve_name (int af, const char *name, struct userdata *u) |
Wrapper function that uses gnunet-gns cli tool to resolve an IPv4/6 address. More... | |
#define TIMEOUT "5s" |
Definition at line 33 of file nss_gns_query.c.
|
static |
Definition at line 36 of file nss_gns_query.c.
References ret.
Referenced by gns_resolve_name().
int gns_resolve_name | ( | int | af, |
const char * | name, | ||
struct userdata * | u | ||
) |
Wrapper function that uses gnunet-gns cli tool to resolve an IPv4/6 address.
af | address family |
name | the name to resolve |
u | the userdata (result struct) |
Definition at line 58 of file nss_gns_query.c.
References kwait(), line, MAX_ENTRIES, name, p, pid, ret, TIMEOUT, and u.
Referenced by _nss_gns_gethostbyname2_r().