Lines Matching refs:htons
50 .st_port = htons ( DNS_PORT ),
292 dns->query.dns.id = htons ( ++qid ); in dns_send_packet()
371 case htons ( DNS_TYPE_A ): in dns_xfer_deliver_raw()
384 case htons ( DNS_TYPE_CNAME ): in dns_xfer_deliver_raw()
391 dns->qinfo->qtype = htons ( DNS_TYPE_A ); in dns_xfer_deliver_raw()
392 dns->qinfo->qclass = htons ( DNS_CLASS_IN ); in dns_xfer_deliver_raw()
415 case htons ( DNS_TYPE_A ): in dns_xfer_deliver_raw()
420 dns->qinfo->qtype = htons ( DNS_TYPE_CNAME ); in dns_xfer_deliver_raw()
424 case htons ( DNS_TYPE_CNAME ): in dns_xfer_deliver_raw()
429 if ( dns->qinfo->qtype == htons ( DNS_TYPE_A ) ) { in dns_xfer_deliver_raw()
512 dns->query.dns.flags = htons ( DNS_FLAG_QUERY | DNS_FLAG_OPCODE_QUERY | in dns_resolv()
514 dns->query.dns.qdcount = htons ( 1 ); in dns_resolv()
516 dns->qinfo->qtype = htons ( DNS_TYPE_A ); in dns_resolv()
517 dns->qinfo->qclass = htons ( DNS_CLASS_IN ); in dns_resolv()