Logo Search packages:      
Sourcecode: ike version File versions  Download package

Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

_PACKET_DNS Class Reference

Inheritance diagram for _PACKET_DNS:
Inheritance graph
[legend]
Collaboration diagram for _PACKET_DNS:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool add (_BDATA &bdata)
bool add (int value, size_t size)
bool add (void *buff, size_t size)
bool add (char *buff, size_t size)
bool add (const char *buff, size_t size)
bool add_byte (uint8_t data)
bool add_null (size_t size)
bool add_quad (uint32_t data, bool hton=true)
bool add_word (uint16_t data, bool hton=true)
bool base64_decode ()
bool base64_encode ()
unsigned char * buff ()
void del (bool null=false)
bool get (char *buff, size_t size)
bool get (void *buff, size_t size)
bool get (_BDATA &bdata, size_t size=BDATA_ALL)
bool get_additional (DNS_RECORD **record, long index)
bool get_answer (DNS_RECORD **record, long index)
bool get_authority (DNS_RECORD **record, long index)
bool get_byte (uint8_t &data)
bool get_null (size_t size)
bool get_quad (uint32_t &data, bool ntoh=true)
bool get_question (DNS_QUERY **query, long index)
bool get_word (uint16_t &data, bool ntoh=true)
bool hex_decode ()
bool hex_encode (bool upper_case=false)
bool ins (_BDATA &bdata, size_t oset=0)
bool ins (void *buff, size_t size, size_t oset=0)
bool ins (int value, size_t size, size_t oset=0)
bool ins (const char *buff, size_t size, size_t oset=0)
bool ins (char *buff, size_t size, size_t oset=0)
bool operator!= (_BDATA &bdata)
bool operator== (_BDATA &bdata)
size_t oset (size_t new_oset=~0)
bool read ()
bool set (char *buff, size_t size, size_t oset=0)
bool set (const char *buff, size_t size, size_t oset=0)
bool set (void *buff, size_t size, size_t oset=0)
bool set (_BDATA &bdata, size_t oset=0)
bool set (int value, size_t size, size_t oset=0)
size_t size (size_t new_size=~0)
char * text ()
bool write ()

Public Attributes

uint16_t add_rr
uint16_t answ
uint16_t ath_rr
uint16_t flags
uint16_t ident
uint16_t ques

Protected Member Functions

size_t grow (size_t new_size=~0)

Protected Attributes

unsigned char * data_buff
size_t data_oset
size_t data_real
size_t data_size

Private Member Functions

bool read_name (char *name, long &size)
bool read_query (DNS_QUERY **query)
bool read_record (DNS_RECORD **record)

Private Attributes

IDB_LIST list_add_rr
IDB_LIST list_answ
IDB_LIST list_ath_rr
IDB_LIST list_ques

Detailed Description

Definition at line 412 of file libip.h.


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

Generated by  Doxygen 1.6.0   Back to index