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__DNSRequest

Representation of a DNS request.

This type does not have a description.

Type Definition


typedef struct {
    napc__DNSHeader header;
    napc__DNSQuery  query;
} napc__DNSRequest;

Members


header
DNS-Header, see napc__DNSHeader.
query
DNS-Query, see napc__DNSQuery.

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 struct {
    char           name[254];
    napc__DNSQType qtype;
} napc__DNSQuery;