Lines Matching refs:ans
1269 struct dns_answer ans;
1388 if (pbuf_copy_partial(p, &ans, SIZEOF_DNS_ANSWER, res_idx) != SIZEOF_DNS_ANSWER) {
1396 if (ans.cls == PP_HTONS(DNS_RRCLASS_IN)) {
1398 if ((ans.type == PP_HTONS(DNS_RRTYPE_A)) && (ans.len == PP_HTONS(sizeof(ip4_addr_t)))) {
1411 dns_correct_response(i, lwip_ntohl(ans.ttl));
1417 if ((ans.type == PP_HTONS(DNS_RRTYPE_AAAA)) && (ans.len == PP_HTONS(sizeof(ip6_addr_p_t)))) {
1431 dns_correct_response(i, lwip_ntohl(ans.ttl));
1438 if ((int)(res_idx + lwip_htons(ans.len)) > 0xFFFF) {
1441 res_idx = (u16_t)(res_idx + lwip_htons(ans.len));