DNS internal structure.  
 More...
DNS internal structure. 
- See also
- RFC 1035, section 4.1.1 
Definition at line 48 of file msg.h.
#include <msg.h>
|  | 
| uint16_t | id | 
|  | identifier 
 | 
|  | 
| uint16_t | flags | 
|  | flags 
 | 
|  | 
| uint16_t | qdcount | 
|  | number of question entries 
 | 
|  | 
| uint16_t | ancount | 
|  | number of answer resource records 
 | 
|  | 
| uint16_t | nscount | 
|  | number of name server resource records 
 | 
|  | 
| uint16_t | arcount | 
|  | number of additional records 
 | 
|  | 
| uint8_t | payload [] | 
|  | payload 
 | 
|  | 
◆ ancount
      
        
          | uint16_t dns_hdr_t::ancount | 
      
 
number of answer resource records 
Definition at line 70 of file msg.h.
 
 
◆ arcount
      
        
          | uint16_t dns_hdr_t::arcount | 
      
 
number of additional records 
Definition at line 72 of file msg.h.
 
 
◆ flags
      
        
          | uint16_t dns_hdr_t::flags | 
      
 
flags 
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|QR|   Opcode  |AA|TC|RD|RA|Z |AD|CD|   RCODE   |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
- QR: Query (0) or Response (1)
- Opcode: Kind of query
- AA: Authoritative Answer
- TC: Truncated
- RD: Recursion Desired
- RA: Recursion Available
- Z: Reserved
- AD: Authentic Data (see RFC 4035)
- CD: Checking Disabled (see RFC 4035)
- RCODE: Response Code 
Definition at line 68 of file msg.h.
 
 
◆ id
identifier 
Definition at line 49 of file msg.h.
 
 
◆ nscount
      
        
          | uint16_t dns_hdr_t::nscount | 
      
 
number of name server resource records 
Definition at line 71 of file msg.h.
 
 
◆ payload
      
        
          | uint8_t dns_hdr_t::payload[] | 
      
 
payload 
Definition at line 73 of file msg.h.
 
 
◆ qdcount
      
        
          | uint16_t dns_hdr_t::qdcount | 
      
 
number of question entries 
Definition at line 69 of file msg.h.
 
 
The documentation for this struct was generated from the following file:
- sys/include/net/dns/msg.h