Lines Matching refs:htons
157 if (type == htons(REQ_A)) {
377 if (head->flags & htons(0x8000)) { /* QR bit */
382 outr_flags = htons(0x8000 | 4);
396 if ((head->flags & htons(0x7800)) != 0) {
401 if (class != htons(1)) { /* not class INET? */
406 if (type != htons(REQ_A) && type != htons(REQ_PTR)) {
420 if (answstr && type == htons(REQ_PTR)) {
431 outr_flags = htons(0x8000 | 0x0400 | 3);
440 move_to_unaligned16((uint16_t *)answb, htons(outr_rlen));
454 outr_flags = htons(0x8000 | 0x0400 | 0);
456 head->nansw = htons(1);
459 if ((outr_flags & htons(0xf)) != 0) { /* not a positive response */
471 head->nquer = htons(1); // why???