FD.io VPP
v18.01.2-1-g9b554f3
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | DNS_RCODE_MASK (0xf) |
#define | DNS_RCODE_NO_ERROR 0 |
#define | DNS_RCODE_FORMAT_ERROR 1 |
#define | DNS_RCODE_SERVER_FAILURE 2 |
#define | DNS_RCODE_NAME_ERROR 3 |
#define | DNS_RCODE_NOT_IMPLEMENTED 4 |
#define | DNS_RCODE_REFUSED 5 |
#define | DNS_RA (1<<7) |
recursion available More... | |
#define | DNS_RD (1<<8) |
recursion desired More... | |
#define | DNS_TC (1<<9) |
truncation More... | |
#define | DNS_AA (1<<10) |
authoritative answer More... | |
#define | DNS_OPCODE_MASK (0xf<<11) |
opcode mask More... | |
#define | DNS_OPCODE_QUERY (0<<11) |
standard query More... | |
#define | DNS_OPCODE_IQUERY (1<<11) |
inverse query (deprecated) More... | |
#define | DNS_OPCODE_STATUS (2<<11) |
server status More... | |
#define | DNS_QR (1<<15) |
query=0, response=1 More... | |
#define | foreach_dns_type |
Host info. More... | |
#define | DNS_CLASS_IN 1 |
The Internet. More... | |
Enumerations | |
enum | dns_type_t { foreach_dns_type } |
Functions | |
typedef | CLIB_PACKED (struct{u16 id;u16 flags;u16 qdcount;u16 anscount;u16 nscount;u16 arcount;}) dns_header_t |
DNS packet header format. More... | |
typedef | CLIB_PACKED (struct{u16 type;u16 class;}) dns_query_t |
DNS "question" fixed header. More... | |
typedef | CLIB_PACKED (struct{u16 type;u16 class;u32 ttl;u16 rdlength;u8 rdata[0];}) dns_rr_t |
DNS RR fixed header. More... | |
#define DNS_AA (1<<10) |
authoritative answer
Definition at line 45 of file dns_packet.h.
#define DNS_CLASS_IN 1 |
The Internet.
Definition at line 145 of file dns_packet.h.
#define DNS_OPCODE_IQUERY (1<<11) |
inverse query (deprecated)
Definition at line 48 of file dns_packet.h.
#define DNS_OPCODE_MASK (0xf<<11) |
opcode mask
Definition at line 46 of file dns_packet.h.
#define DNS_OPCODE_QUERY (0<<11) |
standard query
Definition at line 47 of file dns_packet.h.
#define DNS_OPCODE_STATUS (2<<11) |
server status
Definition at line 49 of file dns_packet.h.
#define DNS_QR (1<<15) |
query=0, response=1
Definition at line 50 of file dns_packet.h.
#define DNS_RA (1<<7) |
recursion available
Definition at line 42 of file dns_packet.h.
#define DNS_RCODE_FORMAT_ERROR 1 |
Definition at line 36 of file dns_packet.h.
#define DNS_RCODE_MASK (0xf) |
Definition at line 34 of file dns_packet.h.
#define DNS_RCODE_NAME_ERROR 3 |
Definition at line 38 of file dns_packet.h.
#define DNS_RCODE_NO_ERROR 0 |
Definition at line 35 of file dns_packet.h.
#define DNS_RCODE_NOT_IMPLEMENTED 4 |
Definition at line 39 of file dns_packet.h.
#define DNS_RCODE_REFUSED 5 |
Definition at line 40 of file dns_packet.h.
#define DNS_RCODE_SERVER_FAILURE 2 |
Definition at line 37 of file dns_packet.h.
#define DNS_RD (1<<8) |
recursion desired
Definition at line 43 of file dns_packet.h.
#define DNS_TC (1<<9) |
truncation
Definition at line 44 of file dns_packet.h.
#define foreach_dns_type |
Host info.
Definition at line 127 of file dns_packet.h.
enum dns_type_t |
Enumerator | |
---|---|
foreach_dns_type |
Definition at line 138 of file dns_packet.h.
DNS packet header format.