Lines Matching refs:packet
275 /* Remember the size of the largest UDP packet we received from a server,
318 /* Invoked whenever we get a packet with TC bit set. */
436 /* RRSIG data was missing on a EDNS0 packet with DO bit set. This means the server doesn't
457 /* We got a failure packet, and are at a feature level above UDP. Note that in this case we
458 * downgrade no further than UDP, under the assumption that a failure packet indicates an
459 * incompatible packet contents, but not a problem with the transport. */
468 /* We got too many TCP connection failures in a row, we had at least one truncated packet, and
470 * data we hope to make the packet smaller, so that it still works via UDP given that TCP
492 int dns_server_adjust_opt(DnsServer *server, DnsPacket *packet, DnsServerFeatureLevel level) {
498 assert(packet);
499 assert(packet->protocol == DNS_PROTOCOL_DNS);
501 /* Fix the OPT field in the packet to match our current feature level. */
503 r = dns_packet_truncate_opt(packet);
517 return dns_packet_append_opt(packet, packet_size, edns_do, NULL);