Home
last modified time | relevance | path

Searched refs:DNS_PACKET_HEADER_SIZE (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/resolve/
Dfuzz-dns-packet.c16 if (size < DNS_PACKET_HEADER_SIZE) { in LLVMFuzzerTestOneInput()
18 assert_se(p->allocated >= DNS_PACKET_HEADER_SIZE); in LLVMFuzzerTestOneInput()
19 memzero(DNS_PACKET_DATA(p) + size, DNS_PACKET_HEADER_SIZE - size); in LLVMFuzzerTestOneInput()
20 p->size = DNS_PACKET_HEADER_SIZE; in LLVMFuzzerTestOneInput()
Dresolved-dns-packet.c20 assert_cc(DNS_PACKET_SIZE_START > DNS_PACKET_HEADER_SIZE);
48 assert(max_size >= DNS_PACKET_HEADER_SIZE); in dns_packet_new()
65 if (min_alloc_dsize < DNS_PACKET_HEADER_SIZE) in dns_packet_new()
84 .size = DNS_PACKET_HEADER_SIZE, in dns_packet_new()
85 .rindex = DNS_PACKET_HEADER_SIZE, in dns_packet_new()
185 .rindex = DNS_PACKET_HEADER_SIZE, in dns_packet_dup()
248 if (p->size < DNS_PACKET_HEADER_SIZE) in dns_packet_validate()
1271 assert(idx >= DNS_PACKET_HEADER_SIZE); in dns_packet_rewind()
1493 if (ptr < DNS_PACKET_HEADER_SIZE || ptr >= jump_barrier) in dns_packet_read_name()
2386 dns_packet_rewind(p, DNS_PACKET_HEADER_SIZE); in dns_packet_extract()
[all …]
Dresolved-dns-packet.h38 #define DNS_PACKET_HEADER_SIZE sizeof(DnsPacketHeader) macro
Dresolved-manager.c1108 if (l->mtu < MIN(UDP4_PACKET_HEADER_SIZE + DNS_PACKET_HEADER_SIZE, in manager_find_mtu()
1109 UDP6_PACKET_HEADER_SIZE + DNS_PACKET_HEADER_SIZE)) in manager_find_mtu()
Dresolved-dns-stream.c377 if (be16toh(s->read_size) < DNS_PACKET_HEADER_SIZE) in on_stream_io()
Dresolved-dns-scope.c229 min_mtu = udp_size + DNS_PACKET_HEADER_SIZE; in dns_scope_emit_one()