DnsResponseDeinit
Description
Release every owned string / Vec inside a parsed DnsResponse.
Success
Returns to the caller. *self is zeroed.
Failure
Function cannot fail. NULL self is a no-op.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dns.c:542:
bool ok = DnsParseResponse(&resp, resp_buf, (u64)got, ALLOCATOR_OF(&scratch));
if (!ok || resp.id != id || resp.rcode != DNS_RCODE_NOERROR) {
DnsResponseDeinit(&resp);
ArenaAllocatorDeinit(&scratch);
return false;- In
Dns.c:555:
}
}
DnsResponseDeinit(&resp);
ArenaAllocatorDeinit(&scratch);
return found;- In
Dns.c:339:
}
void DnsResponseDeinit(DnsResponse *self) {
if (!self) {
return;- In
Dns.c:171:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:224:
bool match = ok && resp.rcode == DNS_RCODE_NXDOMAIN && VecLen(&resp.answers) == 0;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:299:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:571:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:621:
bool match = ok && resp.id == 0x0005;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:661:
bool match = ok && resp.id == 0x0009;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:745:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:813:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:853:
bool match = !ok; // must be rejected
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:893:
bool match = !ok; // self pointer must be rejected
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:920:
VecLen(&resp.additional) == 0;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:936:
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return ok == false;- In
Dns.c:965:
resp.rcode == DNS_RCODE_NOERROR;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:986:
resp.recursion_desired == false && resp.recursion_avail == false;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1004:
bool match = ok && resp.rcode == DNS_RCODE_NXDOMAIN;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1091:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1114:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1139:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1239:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1312:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1410:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1473:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1525:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1550:
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return ok == false;- In
Dns.c:1569:
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return ok == false;- In
Dns.c:1662:
bool match = !ok; // real code rejects: 191 + 1 + 62 = 254 > 253.
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1699:
bool match = ok && resp.id == 0x000a;
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1770:
bool match = !ok; // real code rejects the truncated rdata.
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1832:
}
DnsResponseDeinit(&resp);
DefaultAllocatorDeinit(&alloc);
return match;- In
Dns.c:1876:
DnsResponse resp = {0};
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
bool match = (ok == false) && (DebugAllocatorLiveCount(&dbg) == 0);- In
Dns.c:1899:
DnsResponse resp = {0};
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
bool match = (ok == false) && (DebugAllocatorLiveCount(&dbg) == 0);- In
Dns.c:1923:
DnsResponse resp = {0};
bool ok = DnsParseResponse(&resp, wire, sizeof(wire), a);
DnsResponseDeinit(&resp);
bool match = (ok == false);- In
Dns.c:2052:
}
DnsResponseDeinit(&resp);
DebugAllocatorDeinit(&dbg);
return match;- In
Dns.c:2089:
ok = ok && (StrLen(&r->target) == 11);
DnsResponseDeinit(&resp);
ok = ok && (DebugAllocatorLiveCount(&dbg) == 0);
ok = ok && (DebugAllocatorLiveBytes(&dbg) == 0);- In
Dns.c:2157:
ok = ok && (VecLen(&resp.answers) == 0) && (VecLen(&resp.additional) == 0);
DnsResponseDeinit(&resp);
ok = ok && (DebugAllocatorLiveCount(&dbg) == 0);
ok = ok && (DebugAllocatorLiveBytes(&dbg) == 0);- In
Dns.c:2185:
ok = ok && (VecLen(&resp.answers) == 0) && (VecLen(&resp.authority) == 0);
DnsResponseDeinit(&resp);
ok = ok && (DebugAllocatorLiveCount(&dbg) == 0);
ok = ok && (DebugAllocatorLiveBytes(&dbg) == 0);
Last updated on