mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
dns: packed dns_header_s and dns_question_s
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
|
|
||||||
/* The DNS message header */
|
/* The DNS message header */
|
||||||
|
|
||||||
struct dns_header_s
|
begin_packed_struct struct dns_header_s
|
||||||
{
|
{
|
||||||
uint16_t id;
|
uint16_t id;
|
||||||
uint8_t flags1;
|
uint8_t flags1;
|
||||||
@@ -147,15 +147,15 @@ struct dns_header_s
|
|||||||
uint16_t numanswers;
|
uint16_t numanswers;
|
||||||
uint16_t numauthrr;
|
uint16_t numauthrr;
|
||||||
uint16_t numextrarr;
|
uint16_t numextrarr;
|
||||||
};
|
} end_packed_struct;
|
||||||
|
|
||||||
/* The DNS question message structure */
|
/* The DNS question message structure */
|
||||||
|
|
||||||
struct dns_question_s
|
begin_packed_struct struct dns_question_s
|
||||||
{
|
{
|
||||||
uint16_t type;
|
uint16_t type;
|
||||||
uint16_t class;
|
uint16_t class;
|
||||||
};
|
} end_packed_struct;
|
||||||
|
|
||||||
/* The DNS answer message structure */
|
/* The DNS answer message structure */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user