Public Member Functions | Public Attributes | List of all members
ares::DNSPacket Struct Reference

#include <dns-proto.h>

Public Member Functions

DNSPacketadd_additional (DNSRR *q)
 
DNSPacketadd_answer (DNSRR *q)
 
DNSPacketadd_auth (DNSRR *q)
 
DNSPacketadd_question (DNSQuestion *q)
 
std::vector< bytedata () const
 
 DNSPacket ()
 
DNSPacketset_aa (bool v=true)
 
DNSPacketset_ad (bool v=true)
 
DNSPacketset_cd (bool v=true)
 
DNSPacketset_qid (int qid)
 
DNSPacketset_ra (bool v=true)
 
DNSPacketset_rcode (int rcode)
 
DNSPacketset_rd (bool v=true)
 
DNSPacketset_response (bool v=true)
 
DNSPacketset_tc (bool v=true)
 
DNSPacketset_z (bool v=true)
 

Public Attributes

bool aa_
 
bool ad_
 
std::vector< std::unique_ptr< DNSRR > > adds_
 
std::vector< std::unique_ptr< DNSRR > > answers_
 
std::vector< std::unique_ptr< DNSRR > > auths_
 
bool cd_
 
int opcode_
 
int qid_
 
std::vector< std::unique_ptr< DNSQuestion > > questions_
 
bool ra_
 
int rcode_
 
bool rd_
 
bool response_
 
bool tc_
 
bool z_
 

Detailed Description

Definition at line 188 of file dns-proto.h.

Constructor & Destructor Documentation

◆ DNSPacket()

ares::DNSPacket::DNSPacket ( )
inline

Definition at line 189 of file dns-proto.h.

Member Function Documentation

◆ add_additional()

DNSPacket& ares::DNSPacket::add_additional ( DNSRR q)
inline

Definition at line 206 of file dns-proto.h.

◆ add_answer()

DNSPacket& ares::DNSPacket::add_answer ( DNSRR q)
inline

Definition at line 198 of file dns-proto.h.

◆ add_auth()

DNSPacket& ares::DNSPacket::add_auth ( DNSRR q)
inline

Definition at line 202 of file dns-proto.h.

◆ add_question()

DNSPacket& ares::DNSPacket::add_question ( DNSQuestion q)
inline

Definition at line 194 of file dns-proto.h.

◆ data()

std::vector< byte > ares::DNSPacket::data ( ) const

Definition at line 592 of file dns-proto.cc.

◆ set_aa()

DNSPacket& ares::DNSPacket::set_aa ( bool  v = true)
inline

Definition at line 213 of file dns-proto.h.

◆ set_ad()

DNSPacket& ares::DNSPacket::set_ad ( bool  v = true)
inline

Definition at line 218 of file dns-proto.h.

◆ set_cd()

DNSPacket& ares::DNSPacket::set_cd ( bool  v = true)
inline

Definition at line 219 of file dns-proto.h.

◆ set_qid()

DNSPacket& ares::DNSPacket::set_qid ( int  qid)
inline

Definition at line 211 of file dns-proto.h.

◆ set_ra()

DNSPacket& ares::DNSPacket::set_ra ( bool  v = true)
inline

Definition at line 216 of file dns-proto.h.

◆ set_rcode()

DNSPacket& ares::DNSPacket::set_rcode ( int  rcode)
inline

Definition at line 220 of file dns-proto.h.

◆ set_rd()

DNSPacket& ares::DNSPacket::set_rd ( bool  v = true)
inline

Definition at line 215 of file dns-proto.h.

◆ set_response()

DNSPacket& ares::DNSPacket::set_response ( bool  v = true)
inline

Definition at line 212 of file dns-proto.h.

◆ set_tc()

DNSPacket& ares::DNSPacket::set_tc ( bool  v = true)
inline

Definition at line 214 of file dns-proto.h.

◆ set_z()

DNSPacket& ares::DNSPacket::set_z ( bool  v = true)
inline

Definition at line 217 of file dns-proto.h.

Member Data Documentation

◆ aa_

bool ares::DNSPacket::aa_

Definition at line 228 of file dns-proto.h.

◆ ad_

bool ares::DNSPacket::ad_

Definition at line 233 of file dns-proto.h.

◆ adds_

std::vector<std::unique_ptr<DNSRR> > ares::DNSPacket::adds_

Definition at line 239 of file dns-proto.h.

◆ answers_

std::vector<std::unique_ptr<DNSRR> > ares::DNSPacket::answers_

Definition at line 237 of file dns-proto.h.

◆ auths_

std::vector<std::unique_ptr<DNSRR> > ares::DNSPacket::auths_

Definition at line 238 of file dns-proto.h.

◆ cd_

bool ares::DNSPacket::cd_

Definition at line 234 of file dns-proto.h.

◆ opcode_

int ares::DNSPacket::opcode_

Definition at line 227 of file dns-proto.h.

◆ qid_

int ares::DNSPacket::qid_

Definition at line 225 of file dns-proto.h.

◆ questions_

std::vector<std::unique_ptr<DNSQuestion> > ares::DNSPacket::questions_

Definition at line 236 of file dns-proto.h.

◆ ra_

bool ares::DNSPacket::ra_

Definition at line 231 of file dns-proto.h.

◆ rcode_

int ares::DNSPacket::rcode_

Definition at line 235 of file dns-proto.h.

◆ rd_

bool ares::DNSPacket::rd_

Definition at line 230 of file dns-proto.h.

◆ response_

bool ares::DNSPacket::response_

Definition at line 226 of file dns-proto.h.

◆ tc_

bool ares::DNSPacket::tc_

Definition at line 229 of file dns-proto.h.

◆ z_

bool ares::DNSPacket::z_

Definition at line 232 of file dns-proto.h.


The documentation for this struct was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:02:57