#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include "socket_if.h"
#include "alloc.h"
#include "error.h"
#include "byte.h"
#include "uint_t.h"
#include "ip.h"
#include "dns.h"
#include "curvedns.h"
Go to the source code of this file.
|
int | getscopeid (const struct dns_transmit *d, const char *ip) |
|
int | serverwantstcp (const char *buf, unsigned int len) |
|
int | serverfailed (const char *buf, unsigned int len, char *server) |
|
int | irrelevant (const struct dns_transmit *d, const char *buf, unsigned int len) |
|
void | packetfree (struct dns_transmit *d) |
|
void | queryfree (struct dns_transmit *d) |
|
void | socketfree (struct dns_transmit *d) |
|
void | dns_transmit_free (struct dns_transmit *d) |
|
int | randombind (struct dns_transmit *d) |
|
int | randombind6 (struct dns_transmit *d) |
|
int | randombind4 (struct dns_transmit *d) |
|
int | thisudp (struct dns_transmit *d) |
|
int | firstudp (struct dns_transmit *d) |
|
int | nextudp (struct dns_transmit *d) |
|
int | thistcp (struct dns_transmit *d) |
|
int | firsttcp (struct dns_transmit *d) |
|
int | nexttcp (struct dns_transmit *d) |
|
int | dns_transmit_start (struct dns_transmit *d, const char servers[QUERY_MAXIPLEN], int flagrecursive, const char *q, const char qtype[2], const char localip[16]) |
|
int | dns_transmit_start6 (struct dns_transmit *d, const char servers[QUERY_MAXIPLEN], int flagrecursive, const char *q, const char qtype[2], const char localip[16], const uint32 scopes[QUERY_MAXNS]) |
|
void | dns_transmit_io (struct dns_transmit *d, iopause_fd *x, struct taia *deadline) |
|
int | dns_transmit_get (struct dns_transmit *d, const iopause_fd *x, const struct taia *when) |
|
◆ DNSPORT
◆ MAXUDPLOOP
◆ dns_transmit_free()
◆ dns_transmit_get()
int dns_transmit_get |
( |
struct dns_transmit * |
d, |
|
|
const iopause_fd * |
x, |
|
|
const struct taia * |
when |
|
) |
| |
◆ dns_transmit_io()
void dns_transmit_io |
( |
struct dns_transmit * |
d, |
|
|
iopause_fd * |
x, |
|
|
struct taia * |
deadline |
|
) |
| |
◆ dns_transmit_start()
int dns_transmit_start |
( |
struct dns_transmit * |
d, |
|
|
const char |
servers[QUERY_MAXIPLEN], |
|
|
int |
flagrecursive, |
|
|
const char * |
q, |
|
|
const char |
qtype[2], |
|
|
const char |
localip[16] |
|
) |
| |
◆ dns_transmit_start6()
int dns_transmit_start6 |
( |
struct dns_transmit * |
d, |
|
|
const char |
servers[QUERY_MAXIPLEN], |
|
|
int |
flagrecursive, |
|
|
const char * |
q, |
|
|
const char |
qtype[2], |
|
|
const char |
localip[16], |
|
|
const uint32 |
scopes[QUERY_MAXNS] |
|
) |
| |
◆ firsttcp()
◆ firstudp()
◆ getscopeid()
int getscopeid |
( |
const struct dns_transmit * |
d, |
|
|
const char * |
ip |
|
) |
| |
◆ irrelevant()
int irrelevant |
( |
const struct dns_transmit * |
d, |
|
|
const char * |
buf, |
|
|
unsigned int |
len |
|
) |
| |
◆ nexttcp()
◆ nextudp()
◆ packetfree()
◆ queryfree()
◆ randombind()
◆ randombind4()
◆ randombind6()
◆ serverfailed()
int serverfailed |
( |
const char * |
buf, |
|
|
unsigned int |
len, |
|
|
char * |
server |
|
) |
| |
◆ serverwantstcp()
int serverwantstcp |
( |
const char * |
buf, |
|
|
unsigned int |
len |
|
) |
| |
◆ socketfree()
◆ thistcp()
◆ thisudp()
◆ scope_ids