mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: dns: comments in types/dns.h about structures endianness
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.
This commit is contained in:
parent
3cf7f98782
commit
83b0a17678
1 changed files with 3 additions and 0 deletions
|
|
@ -90,11 +90,13 @@ struct dns_header {
|
|||
} __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 */
|
||||
|
|
@ -102,6 +104,7 @@ struct dns_query_item {
|
|||
unsigned short class; /* query class */
|
||||
};
|
||||
|
||||
/* NOTE: big endian structure */
|
||||
struct dns_answer_item {
|
||||
struct list list;
|
||||
char *name; /* answer name
|
||||
|
|
|
|||
Loading…
Reference in a new issue