Lines Matching refs:uint16_t
76 uint16_t response_position;
77 uint16_t response_length;
79 uint16_t query_offset;
80 uint16_t answer_offset;
81 uint16_t msg_size;
128 uint16_t id;
143 uint16_t flags;
145 uint16_t qdcount;
147 uint16_t ancount;
149 uint16_t nscount;
151 uint16_t arcount;
157 uint16_t type;
158 uint16_t class_;
162 uint16_t type;
163 uint16_t class_;
165 uint16_t rdlength;
170 uint16_t priority;
171 uint16_t weight;
172 uint16_t port;
186 return htons(UNALIGNED_GET((uint16_t *)(header))); in dns_header_id()
195 return ntohs(UNALIGNED_GET((uint16_t *)(header))); in dns_unpack_header_id()
249 return htons(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_header_qdcount()
254 return ntohs(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_unpack_header_qdcount()
260 return htons(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_header_ancount()
265 return ntohs(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_unpack_header_ancount()
271 return htons(UNALIGNED_GET((uint16_t *)(header + 8))); in dns_header_nscount()
277 return htons(UNALIGNED_GET((uint16_t *)(header + 10))); in dns_header_arcount()
282 return htons(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_query_qtype()
287 return ntohs(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_unpack_query_qtype()
292 return htons(UNALIGNED_GET((uint16_t *)(question + 2))); in dns_query_qclass()
297 return ntohs(UNALIGNED_GET((uint16_t *)(question + 2))); in dns_unpack_query_qclass()
300 static inline int dns_answer_type(uint16_t dname_size, uint8_t *answer) in dns_answer_type()
303 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 0))); in dns_answer_type()
306 static inline int dns_answer_class(uint16_t dname_size, uint8_t *answer) in dns_answer_class()
309 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 2))); in dns_answer_class()
312 static inline int dns_answer_ttl(uint16_t dname_size, uint8_t *answer) in dns_answer_ttl()
317 static inline int dns_answer_rdlength(uint16_t dname_size, in dns_answer_rdlength()
320 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 8))); in dns_answer_rdlength()
334 int dns_msg_pack_qname(uint16_t *len, uint8_t *buf, uint16_t size,
384 int dns_msg_pack_query(uint8_t *buf, uint16_t *len, uint16_t size,
385 uint8_t *qname, uint16_t qname_len, uint16_t id,
421 int dns_copy_qname(uint8_t *buf, uint16_t *len, uint16_t size,
422 struct dns_msg_t *dns_msg, uint16_t pos);
441 int mdns_unpack_query_header(struct dns_msg_t *msg, uint16_t *src_id);
444 uint16_t *src_id) in llmnr_unpack_query_header()