result 1 result 2
Go back to reference home
Go back to DNS module
functions
parseHeaderParse a DNS-Header from a buffer.
parseRequestParse a DNS-Request from a buffer.
parseResponseParse a DNS-Response from a buffer.
types
napc__DNSOPCodeRepresentation of a DNS operation code.
napc__DNSHeaderRepresentation of a DNS header.
napc__DNSQTypeRepresentation of DNS query type.
napc__DNSQueryRepresentation of a DNS query.
napc__DNSAnswerRepresentation of a DNS answer.
napc__DNSRequestRepresentation of a DNS request.
napc__DNSResponseRepresentation of a DNS response.

napc__DNSHeader

Representation of a DNS header.

This type does not have a description.

Type Definition


typedef struct {
    napc__DNSOPCode opcode;
    bool            authoritative_answer;
    bool            truncated;
    napc_u16        request_identifier;
    napc_u16        response_code;
    napc_u16        question_count;
    napc_u16        answer_count;
} napc__DNSHeader;

Members


opcode
DNS operation code. See napc__DNSOPCode.
authoritative_answer
Authoritative answer flag.
truncated
Truncated flag.
request_identifier
DNS request identifier.
response_code
DNS-Server response code.
question_count
Number of DNS queries.
answer_count
Number of DNS answers.

Changelog


Version
Date
Change
1.0.0
17.02.2022
initial version
Version: 1.4.1
Documentation generated at 24.03.2022 03:43:18 (UTC)
Go back to reference home
Go back to DNS module
functions
parseHeaderParse a DNS-Header from a buffer.
parseRequestParse a DNS-Request from a buffer.
parseResponseParse a DNS-Response from a buffer.
types
napc__DNSOPCodeRepresentation of a DNS operation code.
napc__DNSHeaderRepresentation of a DNS header.
napc__DNSQTypeRepresentation of DNS query type.
napc__DNSQueryRepresentation of a DNS query.
napc__DNSAnswerRepresentation of a DNS answer.
napc__DNSRequestRepresentation of a DNS request.
napc__DNSResponseRepresentation of a DNS response.
typedef enum {
    NAPC_DNS_OPCODE_QUERY,
    NAPC_DNS_OPCODE_IQUERY,
    NAPC_DNS_OPCODE_STATUS,
    NAPC_DNS_OPCODE_NOTIFY,
    NAPC_DNS_OPCODE_UPDATE,
} napc__DNSOPCode;
typedef uint16_t napc_u16;