From: Baptiste Assmann Date: Mon, 5 Sep 2016 17:09:49 +0000 (+0200) Subject: MINOR: dns: comments in types/dns.h about structures endianness X-Git-Tag: v1.7-dev5~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83b0a1767812daddc2b61b897a3c681956257bcf;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/types/dns.h b/include/types/dns.h index 5d6b5a1fbf..b339249077 100644 --- a/include/types/dns.h +++ b/include/types/dns.h @@ -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