| 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)); |
59 | 60 | | header->rd = 1; // Set recursion flag |
60 | | - | header->flags = htons(header->flags); // Convert flags to network byte order |
| 61 | + | DLX(5,printf("DNS Header Flags: 0x%04x\n", header->flags)); |
61 | 62 | | |
62 | 63 | | // Generate the query |
63 | 64 | | { |
| skipped 82 lines |