To avoid issues when porting code to some architecture, we need to know
the endianess the structures are currently used.
This patch simply had a short notice before those structures to report
endianess and ease contributor's job.
} __attribute__ ((packed));
/* short structure to describe a DNS question */
+/* NOTE: big endian structure */
struct dns_question {
unsigned short qtype; /* question type */
unsigned short qclass; /* query class */
};
+/* NOTE: big endian structure */
struct dns_query_item {
struct list list;
char name[DNS_MAX_NAME_SIZE]; /* query name */
unsigned short class; /* query class */
};
+/* NOTE: big endian structure */
struct dns_answer_item {
struct list list;
char *name; /* answer name