Myra Canyon  v0.0.1-768
network control
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
L4_UDP.hpp File Reference

This file contains definitions and helper functions for when layer 4 is UDP. More...

#include "Types.hpp"
#include "L3_IPv4.hpp"
#include "L3_IPv6.hpp"
Include dependency graph for L4_UDP.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  Myra::L4_UDP::Header
 UDP header. More...
 

Namespaces

 Myra
 Namespace declaration for all of the Myra Canyon helper functions.
 
 Myra::L3_IPv4
 Layer 3 is IPv4.
 
 Myra::L3_IPv6
 Layer 3 is IPv6.
 
 Myra::L4_UDP
 Definitions and helper functions for when layer 4 is UDP.
 

Functions

const Header * Myra::L4_UDP::get_header (const L3_IPv4::Header *l3)
 Get the L4_UDP::Header. More...
 
const Header * Myra::L4_UDP::get_header (const L3_IPv6::Header *l3)
 Get the L4_UDP::Header. More...
 
uint16_t Myra::L4_UDP::get_payload_length (const Header *header)
 Get the UDP payload length. More...
 
const uint8_t * Myra::L4_UDP::get_payload (const Header *header)
 Get a pointer to the payload. More...
 
bool Myra::L3_IPv4::protocol_is_UDP (const Protocol &protocol)
 Determine if a packet's layer 4 is UDP. More...
 
bool Myra::L3_IPv4::protocol_is_UDP (const L3_IPv4::Header *l3)
 Determine if a packet's layer 4 is UDP. More...
 
bool Myra::L3_IPv6::protocol_is_UDP (const Protocol &protocol)
 Determine if a packet's layer 4 is UDP. More...
 
bool Myra::L3_IPv6::protocol_is_UDP (const L3_IPv6::Header *l3)
 Determine if a packet's layer 4 is UDP. More...
 

Detailed Description

This file contains definitions and helper functions for when layer 4 is UDP.