DnsResolver
Description
In-tree resolver state. Created via DnsResolverInit (which reads /etc/hosts and /etc/resolv.conf from disk), torn down via DnsResolverDeinit. No globals, no shared cache; create one per subsystem that needs resolution.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dns.h:69:
u32 timeout_ms;
u32 retries;
} DnsResolver;
///
- In
Dns.h:83:
/// TAGS: Dns, Resolve, Init
///
bool dns_resolver_init(DnsResolver *out, Allocator *alloc);
#define DnsResolverInit(...) OVERLOAD(DnsResolverInit, __VA_ARGS__)
#define DnsResolverInit_1(out) dns_resolver_init((out), MisraScope)- In
Dns.h:115:
/// TAGS: Dns, Resolve, Init, Hosts
///
bool dns_resolver_add_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddPath(...) OVERLOAD(DnsResolverAddPath, __VA_ARGS__)- In
Dns.h:116:
///
bool dns_resolver_add_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddPath(...) OVERLOAD(DnsResolverAddPath, __VA_ARGS__)
#define DnsResolverAddPath_2(self, p) dns_resolver_add_path_str((self), (p))- In
Dns.h:121:
#define DnsResolverAddPath_3(self, p, n) dns_resolver_add_path_zstr((self), (p), (n))
bool dns_resolver_add_hosts_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_hosts_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddHostsPath(...) OVERLOAD(DnsResolverAddHostsPath, __VA_ARGS__)- In
Dns.h:122:
bool dns_resolver_add_hosts_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_hosts_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddHostsPath(...) OVERLOAD(DnsResolverAddHostsPath, __VA_ARGS__)
#define DnsResolverAddHostsPath_2(self, p) dns_resolver_add_hosts_path_str((self), (p))- In
Dns.h:127:
#define DnsResolverAddHostsPath_3(self, p, n) dns_resolver_add_hosts_path_zstr((self), (p), (n))
bool dns_resolver_add_resolv_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_resolv_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddResolvPath(...) OVERLOAD(DnsResolverAddResolvPath, __VA_ARGS__)- In
Dns.h:128:
bool dns_resolver_add_resolv_path_str(DnsResolver *self, const Str *path);
bool dns_resolver_add_resolv_path_zstr(DnsResolver *self, Zstr path, u64 len);
#define DnsResolverAddResolvPath(...) OVERLOAD(DnsResolverAddResolvPath, __VA_ARGS__)
#define DnsResolverAddResolvPath_2(self, p) dns_resolver_add_resolv_path_str((self), (p))- In
Dns.h:133:
#define DnsResolverAddResolvPath_3(self, p, n) dns_resolver_add_resolv_path_zstr((self), (p), (n))
bool dns_resolver_add_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_hosts_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_resolv_paths(DnsResolver *self, const Strs *paths);- In
Dns.h:134:
bool dns_resolver_add_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_hosts_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_resolv_paths(DnsResolver *self, const Strs *paths);
#define DnsResolverAddPaths(self, paths) dns_resolver_add_paths((self), (paths))- In
Dns.h:135:
bool dns_resolver_add_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_hosts_paths(DnsResolver *self, const Strs *paths);
bool dns_resolver_add_resolv_paths(DnsResolver *self, const Strs *paths);
#define DnsResolverAddPaths(self, paths) dns_resolver_add_paths((self), (paths))
#define DnsResolverAddHostsPaths(self, paths) dns_resolver_add_hosts_paths((self), (paths))- In
Dns.h:152:
/// TAGS: Dns, Resolve, Init
///
bool dns_resolver_add_nameserver(DnsResolver *self, SocketAddr ns);
#define DnsResolverAddNameserver(self, ns) dns_resolver_add_nameserver((self), (ns))- In
Dns.h:164:
/// TAGS: Dns, Resolve, Deinit, Init
///
void DnsResolverDeinit(DnsResolver *self);
///
- In
Dns.h:193:
/// TAGS: Dns, Resolve, API
///
bool dns_resolve_5_zstr(DnsResolver *self, Zstr hostname, u16 port, SocketKind kind, DnsAddrs *out);
bool dns_resolve_5_str(DnsResolver *self, const Str *hostname, u16 port, SocketKind kind, DnsAddrs *out);
#define DnsResolve_5(self, hostname, port, kind, out) \- In
Dns.h:194:
///
bool dns_resolve_5_zstr(DnsResolver *self, Zstr hostname, u16 port, SocketKind kind, DnsAddrs *out);
bool dns_resolve_5_str(DnsResolver *self, const Str *hostname, u16 port, SocketKind kind, DnsAddrs *out);
#define DnsResolve_5(self, hostname, port, kind, out) \
_Generic( \- In
Dns.h:217:
/// TAGS: Dns, Resolve, API
///
bool dns_resolve_4_vec_zstr(DnsResolver *self, Zstr spec, SocketKind kind, DnsAddrs *out);
bool dns_resolve_4_vec_str(DnsResolver *self, const Str *spec, SocketKind kind, DnsAddrs *out);
#define DnsResolve_4_vec(self, spec, kind, out) \- In
Dns.h:218:
///
bool dns_resolve_4_vec_zstr(DnsResolver *self, Zstr spec, SocketKind kind, DnsAddrs *out);
bool dns_resolve_4_vec_str(DnsResolver *self, const Str *spec, SocketKind kind, DnsAddrs *out);
#define DnsResolve_4_vec(self, spec, kind, out) \
_Generic( \- In
Dns.h:239:
/// TAGS: Dns, Resolve, API
///
bool dns_resolve_4_one_zstr(DnsResolver *self, Zstr spec, SocketKind kind, SocketAddr *out);
bool dns_resolve_4_one_str(DnsResolver *self, const Str *spec, SocketKind kind, SocketAddr *out);- In
Dns.h:240:
///
bool dns_resolve_4_one_zstr(DnsResolver *self, Zstr spec, SocketKind kind, SocketAddr *out);
bool dns_resolve_4_one_str(DnsResolver *self, const Str *spec, SocketKind kind, SocketAddr *out);
///
- In
Dns.c:310:
// ---------------------------------------------------------------------------
bool dns_resolver_init(DnsResolver *out, Allocator *alloc) {
if (!out || !alloc) {
return false;- In
Dns.c:330:
// ---------------------------------------------------------------------------
static bool dns_add_path(DnsResolver *self, Zstr path, bool do_hosts, bool do_resolv) {
if (!self || !path)
return false;- In
Dns.c:340:
}
static bool dns_add_path_len(DnsResolver *self, Zstr path, u64 len, bool do_hosts, bool do_resolv) {
if (!self || !path)
return false;- In
Dns.c:350:
}
bool dns_resolver_add_path_str(DnsResolver *self, const Str *path) {
if (!self || !path)
return false;- In
Dns.c:356:
}
bool dns_resolver_add_path_zstr(DnsResolver *self, Zstr path, u64 len) {
return dns_add_path_len(self, path, len, true, true);
}- In
Dns.c:360:
}
bool dns_resolver_add_hosts_path_str(DnsResolver *self, const Str *path) {
if (!self || !path)
return false;- In
Dns.c:366:
}
bool dns_resolver_add_hosts_path_zstr(DnsResolver *self, Zstr path, u64 len) {
return dns_add_path_len(self, path, len, true, false);
}- In
Dns.c:370:
}
bool dns_resolver_add_resolv_path_str(DnsResolver *self, const Str *path) {
if (!self || !path)
return false;- In
Dns.c:376:
}
bool dns_resolver_add_resolv_path_zstr(DnsResolver *self, Zstr path, u64 len) {
return dns_add_path_len(self, path, len, false, true);
}- In
Dns.c:380:
}
bool dns_resolver_add_paths(DnsResolver *self, const Strs *paths) {
if (!self || !paths)
return false;- In
Dns.c:387:
}
bool dns_resolver_add_hosts_paths(DnsResolver *self, const Strs *paths) {
if (!self || !paths)
return false;- In
Dns.c:394:
}
bool dns_resolver_add_resolv_paths(DnsResolver *self, const Strs *paths) {
if (!self || !paths)
return false;- In
Dns.c:401:
}
bool dns_resolver_add_nameserver(DnsResolver *self, SocketAddr ns) {
if (!self)
return false;- In
Dns.c:407:
}
void DnsResolverDeinit(DnsResolver *self) {
if (!self) {
return;- In
Dns.c:513:
// response's id is checked to match before the records are extracted.
static bool
try_one_query(DnsResolver *self, const SocketAddr *ns, Zstr hostname, DnsType qtype, u16 port, DnsAddrs *out) {
// Per-call scratch: one DNS query buffer (<= 1232 B) plus the parsed
// response with its records vector. Everything is dropped at function
- In
Dns.c:560:
}
bool dns_resolve_5_zstr(DnsResolver *self, Zstr hostname, u16 port, SocketKind kind, DnsAddrs *out) {
(void)kind; // protocol byte doesn't affect resolution
if (!self || !hostname || !out) {- In
Dns.c:622:
}
bool dns_resolve_4_vec_zstr(DnsResolver *self, Zstr spec, SocketKind kind, DnsAddrs *out) {
if (!self || !spec || !out) {
return false;- In
Dns.c:690:
}
bool dns_resolve_5_str(DnsResolver *self, const Str *hostname, u16 port, SocketKind kind, DnsAddrs *out) {
if (!self || !hostname || !out) {
return false;- In
Dns.c:697:
}
bool dns_resolve_4_vec_str(DnsResolver *self, const Str *spec, SocketKind kind, DnsAddrs *out) {
if (!self || !spec || !out) {
return false;- In
Dns.c:704:
}
bool dns_resolve_4_one_zstr(DnsResolver *self, Zstr spec, SocketKind kind, SocketAddr *out) {
if (!self || !spec || !out) {
return false;- In
Dns.c:718:
}
bool dns_resolve_4_one_str(DnsResolver *self, const Str *spec, SocketKind kind, SocketAddr *out) {
if (!self || !spec || !out) {
return false;- In
Resolve.c:32:
}
DnsResolver r;
if (!DnsResolverInit(&r, alloc)) {
LOG_ERROR("failed to init resolver");- In
Beam.c:399:
}
DnsResolver resolver;
if (!DnsResolverInit(&resolver, alloc)) {
LOG_ERROR("failed to init DNS resolver");- In
SysDns.c:34:
// This is what `DnsResolverInit` produces minus the /etc parsing, so the
// crafted-table and Add*Path tests start from a known-empty state.
static void resolver_init_empty(DnsResolver *r, Allocator *a) {
r->allocator = a;
r->hosts = VecInitT(r->hosts, a);- In
SysDns.c:42:
}
static void hosts_push_v4(DnsResolver *r, Zstr name, u8 b0, u8 b1, u8 b2, u8 b3) {
HostsEntry e = {0};
e.name = StrInitFromCstr(name, ZstrLen(name), r->allocator);- In
SysDns.c:53:
}
static void hosts_push_v6(DnsResolver *r, Zstr name, const u8 ip16[16]) {
HostsEntry e = {0};
e.name = StrInitFromCstr(name, ZstrLen(name), r->allocator);- In
SysDns.c:64:
// Canonical crafted table used by the resolve-API tests.
static void resolver_init_crafted(DnsResolver *r, Allocator *a) {
resolver_init_empty(r, a);
hosts_push_v4(r, "single", 1, 2, 3, 4);- In
SysDns.c:130:
// Compare nameserver `i` formatted as "ip:port" against `expect`.
static bool ns_fmt_is(DnsResolver *r, u64 i, Allocator *a, Zstr expect) {
if (VecLen(&r->nameservers) <= i) {
return false;- In
SysDns.c:150:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
bool ok = DnsResolverInit(&r, a);
if (!ok) {- In
SysDns.c:180:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:197:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:214:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:238:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:262:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:291:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:314:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:333:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
DnsResolverInit(&r, a);- In
SysDns.c:356:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "127.0.0.1 localhost\n");- In
SysDns.c:375:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "192.168.1.5 host.example alias1 alias2 alias3\n");- In
SysDns.c:396:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:422:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.0.0.2 namex # trailing comment words\n");- In
SysDns.c:442:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.0.0.2 namex#tail\n");- In
SysDns.c:461:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, " \t 172.16.0.9\thostt\talt\n");- In
SysDns.c:481:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.1.1.1 MixedCaseHost\n");- In
SysDns.c:502:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.1.1.2 @AZ[`M\n");- In
SysDns.c:522:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.0.0.1 a\n8.8.8.8 dns");- In
SysDns.c:543:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "10.0.0.1 a\n# trailing comment no newline");- In
SysDns.c:562:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:587:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "::1 ip6-localhost\n");- In
SysDns.c:616:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:639:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:662:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:694:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:717:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
DnsResolverAddHostsPath(&r, "sysdns_definitely_missing_zzqq", 30);- In
SysDns.c:742:
StrPushBackMany(&body, "10.20.30.40 farhost\n", ZstrLen("10.20.30.40 farhost\n"));
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, StrBegin(&body));- In
SysDns.c:765:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:791:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver ::1\n");- In
SysDns.c:810:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "# nameserver 9.9.9.9\n");- In
SysDns.c:828:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "; nameserver 9.9.9.9\n");- In
SysDns.c:846:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "search 8.8.8.8\n");- In
SysDns.c:864:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserverx 8.8.8.8\n");- In
SysDns.c:882:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver\t8.8.4.4\n");- In
SysDns.c:900:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, " nameserver 8.8.8.8\n");- In
SysDns.c:918:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver not.an.ip.999\n");- In
SysDns.c:936:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver 8.8.8.8#note\n");- In
SysDns.c:954:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver \n");- In
SysDns.c:972:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:996:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver 8.8.8.8");- In
SysDns.c:1020:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "a@z", 10, 0, 0, 1);- In
SysDns.c:1040:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "host", 10, 0, 0, 2);- In
SysDns.c:1060:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "a.b.c", 10, 0, 0, 3);- In
SysDns.c:1080:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "host", 10, 0, 0, 4);- In
SysDns.c:1108:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "myhost", 1, 2, 3, 4);- In
SysDns.c:1142:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
u8 ip6[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; // ::1
- In
SysDns.c:1186:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:1219:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:1243:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:1266:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:1291:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "1.2.3.4 lenhost\n");- In
SysDns.c:1320:
size baseline = DebugAllocatorLiveCount(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
DnsResolverAddHostsPath(&r, StrBegin(&path), plen);- In
SysDns.c:1337:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:1368:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:1399:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:1431:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(- In
SysDns.c:1455:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
Str path = write_temp(a, "nameserver 4.3.2.1\n");- In
SysDns.c:1473:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);- In
SysDns.c:1493:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1511:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1530:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1549:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1567:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1585:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1603:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1627:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1651:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1681:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_empty(&r, a);
hosts_push_v4(&r, "", 7, 7, 7, 7);- In
SysDns.c:1700:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1721:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1739:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1758:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1776:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1794:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1812:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1830:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1848:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1875:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1893:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1914:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1931:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1948:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1965:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:1984:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
bool ok = dns_resolver_init(&r, a);- In
SysDns.c:1998:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
bool ok = dns_resolver_init(&r, a);- In
SysDns.c:2026:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
bool ok = dns_resolver_init(&r, a);- In
SysDns.c:2040:
Allocator *a = ALLOCATOR_OF(&alloc);
DnsResolver r;
bool ok = dns_resolver_init(&r, a);- In
SysDns.c:2051:
static bool test_init_null_alloc(void) {
DnsResolver r;
bool got = dns_resolver_init(&r, NULL);
return !got;- In
SysDns.c:2061:
size baseline = DebugAllocatorLiveCount(&alloc);
DnsResolver r;
resolver_init_crafted(&r, a);- In
SysDns.c:2080:
size baseline = DebugAllocatorLiveCount(&alloc);
DnsResolver r;
bool ok = dns_resolver_init(&r, a);
Last updated on