Layer 3 is IPv6. More...
Classes | |
struct | Header |
IPv6 header. More... | |
Typedefs | |
typedef L3_IP::Protocol | Protocol |
Pull into L3_IPv6 the IP protocol declaration to use in L3_IPv6::Header::next_header. More... | |
Functions | |
const Header * | get_header (const uint8_t *ptr) |
Get the L3_IPv6 header. More... | |
const Header * | get_header (const L2::Header *l2) |
Get the L3_IPv6 header. More... | |
int | get_version (const Header *header) |
Get the high 4 bits from L3_IPv6::Header::ver_class_flow_label. More... | |
int | get_diffserv (const Header *header) |
Get the DiffServ (6 bits) from L3_IPv6::Header::ver_class_flow_label. More... | |
int | get_ecn (const Header *header) |
Get the ECN (2 bits) from L3_IPv6::Header::ver_class_flow_label. More... | |
int | get_flow_label (const Header *header) |
Get the flow label (20 bits) from L3_IPv6::Header::ver_class_flow_label. More... | |
const uint8_t * | get_L4_pointer (const Header *header) |
Get a pointer to the start of L4. More... | |
Protocol | get_protocol (const Header *header) |
Get the protocol from the header to determine how to interpret L4. More... | |
Protocol | get_next_header (const Header *header) |
get_next_header() is the IPv6 equivalent to L3_IPv4::get_protocol() More... | |
bool | is_known_protocol (const Header *header) |
Determine if the protocol is a known value. More... | |
bool | is_unknown_protocol (const Header *header) |
Determine if the protocol is unknown. More... | |
std::string | to_string (const Protocol &proto) |
Return a simple text string that represents the IP protocol name. More... | |
uint16_t | get_payload_length (const Header *header) |
bool | protocol_is_ICMPv6 (const Protocol &protocol) |
Determine if a packet's layer 4 is UDP. More... | |
bool | protocol_is_ICMPv6 (const L3_IPv6::Header *l3) |
Determine if a packet's layer 4 is UDP. More... | |
bool | protocol_is_TCP (const Protocol &protocol) |
Determine if a packet's layer 4 is TCP. More... | |
bool | protocol_is_TCP (const L3_IPv6::Header *l3) |
Determine if a packet's layer 4 is TCP. More... | |
bool | protocol_is_UDP (const Protocol &protocol) |
Determine if a packet's layer 4 is UDP. More... | |
bool | protocol_is_UDP (const L3_IPv6::Header *l3) |
Determine if a packet's layer 4 is UDP. More... | |
Layer 3 is IPv6.
Pull into L3_IPv6 the IP protocol declaration to use in L3_IPv6::Header::next_header.
|
inline |
Get the DiffServ (6 bits) from L3_IPv6::Header::ver_class_flow_label.
|
inline |
Get the ECN (2 bits) from L3_IPv6::Header::ver_class_flow_label.
|
inline |
Get the flow label (20 bits) from L3_IPv6::Header::ver_class_flow_label.
|
inline |
|
inline |
|
inline |
Get a pointer to the start of L4.
|
inline |
get_next_header() is the IPv6 equivalent to L3_IPv4::get_protocol()
|
inline |
|
inline |
Get the protocol from the header to determine how to interpret L4.
|
inline |
Get the high 4 bits from L3_IPv6::Header::ver_class_flow_label.
|
inline |
Determine if the protocol is a known value.
|
inline |
Determine if the protocol is unknown.
|
inline |
Determine if a packet's layer 4 is UDP.
|
inline |
Determine if a packet's layer 4 is UDP.
|
inline |
Determine if a packet's layer 4 is TCP.
|
inline |
Determine if a packet's layer 4 is TCP.
|
inline |
Determine if a packet's layer 4 is UDP.
|
inline |
Determine if a packet's layer 4 is UDP.
|
inline |
Return a simple text string that represents the IP protocol name.