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__DNSResponse

Representation of a DNS response.

This type does not have a description.

Type Definition


typedef struct {
    napc__DNSHeader header;
    napc_size       num_answers;
    napc__DNSAnswer answers[4];
} napc__DNSResponse;

Members


header
DNS-Header, see napc__DNSHeader.
num_answers
Represents number of elements in answers array.
answers
DNS-Answers, see napc__DNSAnswer.

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 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;
typedef napc_u32 napc_size;
typedef struct {
    napc_u32 ttl;
    napc_u16 rd_length;
    napc_u8  rd_data[16];
} napc__DNSAnswer;