![]() |
fehQlibs 28
Qlibs
|
DNS query function. More...
#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 "dnsresolv.h"
Go to the source code of this file.
Macros | |
| #define | DNSPORT 53 |
Functions | |
| 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) |
| 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 | randombind6 (struct dns_transmit *d) |
| int | randombind4 (struct dns_transmit *d) |
| int | firstudp (struct dns_transmit *d) |
| int | nextudp (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) |
Variables | |
| uint32 | scope_ids [QUERY_MAXNS] |
DNS query function.
scope_ids[32] -> 32 LLU root servers supported
Definition in file dns_transmit.c.
| #define DNSPORT 53 |
Definition at line 20 of file dns_transmit.c.
| void dns_transmit_free | ( | struct dns_transmit * | d | ) |
Definition at line 105 of file dns_transmit.c.


| int dns_transmit_get | ( | struct dns_transmit * | d, |
| const iopause_fd * | x, | ||
| const struct taia * | when ) |
Definition at line 311 of file dns_transmit.c.


| void dns_transmit_io | ( | struct dns_transmit * | d, |
| iopause_fd * | x, | ||
| struct taia * | deadline ) |
Definition at line 294 of file dns_transmit.c.


| 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] ) |
Definition at line 255 of file dns_transmit.c.


| 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] ) |
| int firsttcp | ( | struct dns_transmit * | d | ) |
| int firstudp | ( | struct dns_transmit * | d | ) |
| int getscopeid | ( | const struct dns_transmit * | d, |
| const char * | ip ) |
| int nexttcp | ( | struct dns_transmit * | d | ) |
| int nextudp | ( | struct dns_transmit * | d | ) |
| void packetfree | ( | struct dns_transmit * | d | ) |
Definition at line 84 of file dns_transmit.c.


| void queryfree | ( | struct dns_transmit * | d | ) |
Definition at line 91 of file dns_transmit.c.


| int randombind4 | ( | struct dns_transmit * | d | ) |
| int randombind6 | ( | struct dns_transmit * | d | ) |
| int serverfailed | ( | const char * | buf, |
| unsigned int | len ) |
Definition at line 48 of file dns_transmit.c.


| int serverwantstcp | ( | const char * | buf, |
| unsigned int | len ) |
Definition at line 38 of file dns_transmit.c.


| void socketfree | ( | struct dns_transmit * | d | ) |
Definition at line 98 of file dns_transmit.c.


| uint32 scope_ids[QUERY_MAXNS] |
Definition at line 22 of file dns_transmit.c.