IPPOLib
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | List of all members
ProbeReply Class Reference

#include <probereply.h>

Public Member Functions

 ProbeReply ()
 ProbeReply::ProbeReply.
 ~ProbeReply ()
 ProbeReply::~ProbeReply.
void set_probe (char probe[MAX_PACKET])
 ProbeReply::set_probe.
std::string src_addr ()
 ProbeReply::src_addr.
uint32 src_addr_raw ()
 ProbeReply::src_addr_raw.
std::string dst_addr ()
 ProbeReply::dst_addr.
uint32 dst_addr_raw ()
 ProbeReply::dst_addr_raw.
std::string iperror_dst_addr ()
 ProbeReply::iperror_dst_addr.
uint32 iperror_dst_addr_raw ()
 ProbeReply::iperror_dst_addr_raw.
uint16 dst_port ()
 ProbeReply::dst_port.
int ip_protocol ()
 ProbeReply::ip_protocol.
int iperror_ip_protocol ()
 ProbeReply::iperror_ip_protocol.
int ihl ()
 ProbeReply::ihl.
int code ()
 ProbeReply::code.
int subcode ()
 ProbeReply::subcode.
bool has_response ()
 ProbeReply::has_response.
bool options ()
 ProbeReply::options.
bool outer_options (TSOption **opt)
 ProbeReply::outer_options.
bool inner_options (TSOption **opt)
 ProbeReply::inner_options.
char * probe ()
 probe
char * transport_probe ()
 ProbeReply::transport_probe.
char * payload_probe ()
 Probe::Reply::payload_probe.
int scan_result ()
 ProbeReply::result_scan.
void set_scan_result (int scan_result)
 ProbeReply::set_result_scan.
void print ()
 ProbeReply::print.
void reset ()
 ProbeReply::reset.

Detailed Description

Definition at line 90 of file probereply.h.

Constructor & Destructor Documentation

ProbeReply::ProbeReply ( )

ProbeReply::ProbeReply.

Definition at line 39 of file probereply.cpp.

ProbeReply::~ProbeReply ( )

ProbeReply::~ProbeReply.

Definition at line 53 of file probereply.cpp.

Member Function Documentation

int ProbeReply::code ( )

ProbeReply::code.

if response probe is ICMP get ICMP type, if TCP get TCP_RST_FLAG, TCP_SYN_ACK or TCP_UNKNOWN

Returns
interger value which is ICMP type or TCP_RST_FLAG, TCP_SYN_ACK or TCP_UNKNOWN

Definition at line 317 of file probereply.cpp.

Here is the caller graph for this function:

std::string ProbeReply::dst_addr ( )

ProbeReply::dst_addr.

get destination IP address in dotted notation

Returns
string of IP address in dotted notation

Definition at line 216 of file probereply.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32 ProbeReply::dst_addr_raw ( )

ProbeReply::dst_addr_raw.

get destination IP address in number notation

Returns
uint32 of IP address in number notation

Definition at line 226 of file probereply.cpp.

uint16 ProbeReply::dst_port ( )

ProbeReply::dst_port.

get destination port if probe is TCP otherwhise -1.

Returns
uint16 of TCP destination port otherwhise -1.

Definition at line 256 of file probereply.cpp.

Here is the call graph for this function:

bool ProbeReply::has_response ( )

ProbeReply::has_response.

boolean value which is true if a response probe is obtained, otherwise false.

Returns
true if response probe is obtained.

Definition at line 337 of file probereply.cpp.

Here is the caller graph for this function:

int ProbeReply::ihl ( )

ProbeReply::ihl.

IHL field of IP header

Returns
interger value of IHL field of IP header

Definition at line 307 of file probereply.cpp.

Here is the caller graph for this function:

bool ProbeReply::inner_options ( TSOption **  opt)

ProbeReply::inner_options.

get the inner IP Options field of IP header encapsulated in response ICMP packet

Returns

Definition at line 408 of file probereply.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int ProbeReply::ip_protocol ( )

ProbeReply::ip_protocol.

IP protocol field of IP header of response probe

Returns
integer value of IP protocol field in IP header.

Definition at line 287 of file probereply.cpp.

Here is the caller graph for this function:

std::string ProbeReply::iperror_dst_addr ( )

ProbeReply::iperror_dst_addr.

get destination IP address in IP encapsulated in ICMP packet in dotted notation.

Returns
string of IP address in dotted notation.

Definition at line 236 of file probereply.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32 ProbeReply::iperror_dst_addr_raw ( )

ProbeReply::iperror_dst_addr_raw.

get destination IP address in IP encapsulated in ICMP packet in number notation.

Returns
uint32 of IP address in number notation.

Definition at line 246 of file probereply.cpp.

int ProbeReply::iperror_ip_protocol ( )

ProbeReply::iperror_ip_protocol.

IP protocol field of IP header encapsulated in ICMP packet of response probe

Returns
integer value of IP protocol field in IP header encapsulated in ICMP packet

Definition at line 297 of file probereply.cpp.

bool ProbeReply::options ( )

ProbeReply::options.

boolean value which is true if IP Options field of IP header is setted.

Returns
true if IP Options.

Definition at line 350 of file probereply.cpp.

bool ProbeReply::outer_options ( TSOption **  opt)

ProbeReply::outer_options.

get the outer IP Options field of IP header

Returns
raw IP Options field

Definition at line 392 of file probereply.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

char * ProbeReply::payload_probe ( )

Probe::Reply::payload_probe.

get the response payload probe in raw if ICMP

Returns
raw of payload probe

Definition at line 381 of file probereply.cpp.

Here is the call graph for this function:

void ProbeReply::print ( )

ProbeReply::print.

printing details of response probe

Definition at line 425 of file probereply.cpp.

Here is the call graph for this function:

char * ProbeReply::probe ( )

probe

get the whole response probe in raw

Returns
raw response probe

Definition at line 360 of file probereply.cpp.

Here is the caller graph for this function:

void ProbeReply::reset ( )

ProbeReply::reset.

reset probe reply

Definition at line 469 of file probereply.cpp.

int ProbeReply::scan_result ( )

ProbeReply::result_scan.

return a value with the result of probing. If ERROR value is -8, if NO_RESPONSE value is -1 otherwise ICMP type or TCP_RST_FLAG, TCP_SYN_ACK or TCP_UNKNOWN.

Returns
output of OneProbeOneReply

Definition at line 268 of file probereply.cpp.

void ProbeReply::set_probe ( char  probe[MAX_PACKET])

ProbeReply::set_probe.

PUBLIC METHOD

Parameters
probe

Definition at line 184 of file probereply.cpp.

Here is the call graph for this function:

void ProbeReply::set_scan_result ( int  result_scan)

ProbeReply::set_result_scan.

Parameters
result_scan

Definition at line 277 of file probereply.cpp.

std::string ProbeReply::src_addr ( )

ProbeReply::src_addr.

get source IP address in dotted notation

Returns
string of IP address in dotted notation

Definition at line 196 of file probereply.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32 ProbeReply::src_addr_raw ( )

ProbeReply::src_addr_raw.

get source IP address in number notation

Returns
uint32 of IP address in number notation

Definition at line 206 of file probereply.cpp.

int ProbeReply::subcode ( )

ProbeReply::subcode.

if response probe is ICMP get ICMP code.

Returns
integer value which is ICMP code.

Definition at line 327 of file probereply.cpp.

Here is the caller graph for this function:

char * ProbeReply::transport_probe ( )

ProbeReply::transport_probe.

get the response transport probe in raw

Returns
raw of transport probe

Definition at line 370 of file probereply.cpp.

Here is the call graph for this function:


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