| skipped 55 lines |
56 | 56 | | queryID = htons((uint16_t)rand()); |
57 | 57 | | header->id = htons(queryID); // Randomly generated query ID |
58 | 58 | | header->qdcount = htons(1); // One query |
59 | | - | DLX(5,printf("DNS Header Flags: 0x%04x\n", header->flags)); |
60 | 59 | | header->rd = 1; // Set recursion flag |
61 | | - | DLX(5,printf("DNS Header Flags: 0x%04x\n", header->flags)); |
| 60 | + | header->flags = htons(header->flags); |
62 | 61 | | |
63 | 62 | | // Generate the query |
64 | 63 | | { |
| skipped 82 lines |