Searched refs:DNS_PACKET_HEADER (Results 1 - 5 of 5) sorted by relevance

/systemd/src/resolve/
H A Dresolved-dns-packet.h110 #define DNS_PACKET_HEADER(p) ((DnsPacketHeader*) DNS_PACKET_DATA(p)) macro
111 #define DNS_PACKET_ID(p) DNS_PACKET_HEADER(p)->id
112 #define DNS_PACKET_QR(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 15) & 1)
113 #define DNS_PACKET_OPCODE(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 11) & 15)
114 #define DNS_PACKET_AA(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 10) & 1)
115 #define DNS_PACKET_TC(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 9) & 1)
116 #define DNS_PACKET_RD(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 8) & 1)
117 #define DNS_PACKET_RA(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 7) & 1)
118 #define DNS_PACKET_AD(p) ((be16toh(DNS_PACKET_HEADER(p)->flags) >> 5) & 1)
119 #define DNS_PACKET_CD(p) ((be16toh(DNS_PACKET_HEADER(
[all...]
H A Dresolved-dns-scope.c619 DNS_PACKET_HEADER(p)->id = id;
620 DNS_PACKET_HEADER(p)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
638 DNS_PACKET_HEADER(p)->qdcount = htobe16(q->n_keys);
648 DNS_PACKET_HEADER(p)->ancount = htobe16(answer->n_rrs);
658 DNS_PACKET_HEADER(p)->arcount = htobe16(soa->n_rrs);
809 DNS_PACKET_HEADER(p)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
822 random_bytes(&DNS_PACKET_HEADER(p)->id, sizeof(uint16_t));
824 DNS_PACKET_HEADER(p)->qdcount = htobe16(1);
825 DNS_PACKET_HEADER(p)->arcount = htobe16(1);
H A Dresolved-dns-cache.c1007 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
1026 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
H A Dresolved-dns-packet.c73 h = DNS_PACKET_HEADER(p);
745 DNS_PACKET_HEADER(p)->arcount = htobe16(DNS_PACKET_ARCOUNT(p) + 1);
775 DNS_PACKET_HEADER(p)->arcount = htobe16(DNS_PACKET_ARCOUNT(p) - 1);
H A Dresolved-dns-transaction.c1381 DNS_PACKET_HEADER(p)->qdcount = htobe16(qdcount);
1416 DNS_PACKET_HEADER(p)->qdcount = htobe16(1);
1417 DNS_PACKET_HEADER(p)->id = t->id;

Completed in 2057 milliseconds