|
enum | tcp_ip_proto_t { ICMPV4_IP_PROTO = 1
} |
|
enum | icmpv4_type_t { ICMP_TYPE_DESTINATION_UNREACHABLE = 3,
ICMP_TYPE_ECHO_REPLY = 0,
ICMP_TYPE_ECHO_REQUEST = 8
} |
|
enum | icmpv4_code_t { ICMP_CODE_HOST_UNREACHABLE = 1,
ICMP_CODE_NO_CODE = 0,
ICMP_CODE_DATAGRAM_TOO_BIG = 4
} |
|
|
enum
rofl::ficmpv4frame::tcp_ip_proto_t | __attribute__ |
|
struct icmpv4_hdr_t * | icmp_hdr |
|
uint8_t * | data |
|
size_t | datalen |
|
fframe * | next |
|
fframe * | prev |
|
|
std::ostream & | operator<< (std::ostream &os, ficmpv4frame const &frame) |
|
ficmpv4frame::ficmpv4frame |
( |
uint8_t * |
data, |
|
|
size_t |
datalen |
|
) |
| |
ficmpv4frame::ficmpv4frame |
( |
size_t |
len = DEFAULT_ICMPV4_FRAME_SIZE | ) |
|
constructor for creating new icmpv4 frame
ficmpv4frame::~ficmpv4frame |
( |
| ) |
|
|
virtual |
bool ficmpv4frame::complete |
( |
| ) |
const |
|
virtual |
returns boolean value indicating completeness of the packet
Reimplemented from rofl::fframe.
void ficmpv4frame::icmpv4_calc_checksum |
( |
uint16_t |
length | ) |
|
calculate TCP header checksum
void ficmpv4frame::initialize |
( |
| ) |
|
|
virtual |
initialize (set eth_hdr, pppoe_hdr)
Reimplemented from rofl::fframe.
size_t ficmpv4frame::need_bytes |
( |
| ) |
const |
|
virtual |
returns the number of bytes this packet expects from the socket next
Reimplemented from rofl::fframe.
void ficmpv4frame::payload_insert |
( |
uint8_t * |
data, |
|
|
size_t |
datalen |
|
) |
| |
throw | ( | eFrameOutOfRange |
| ) | | |
|
virtual |
void ficmpv4frame::validate |
( |
uint16_t |
total_len = 0 | ) |
const |
|
virtual |
The documentation for this class was generated from the following files:
- /home/andreas/git/rofl-core/src/rofl/common/protocols/ficmpv4frame.h
- /home/andreas/git/rofl-core/src/rofl/common/protocols/ficmpv4frame.cc