EMANE  1.2.1
netadaptermessage.h File Reference
#include <cstdint>

Go to the source code of this file.

Classes

class  EMANE::NetAdapterHeader
 NetAdapter message header. More...
 
struct  EMANE::NetAdapterDataMessage
 data shared between network adapter and nem. More...
 
struct  EMANE::NetAdapterControlMessage
 information shared between network adapter and nem. More...
 

Namespaces

 EMANE
 

Functions

struct EMANE::ControlMessageHeader EMANE::__attribute__ ((packed))
 
NetAdapterHeader * EMANE::NetAdapterHeaderToHost (NetAdapterHeader *pMsg)
 
NetAdapterHeader * EMANE::NetAdapterHeaderToNet (NetAdapterHeader *pMsg)
 
NetAdapterControlMessage * EMANE::NetAdapterControlMessageToHost (NetAdapterControlMessage *ctrl)
 
NetAdapterControlMessage * EMANE::NetAdapterControlMessageToNet (NetAdapterControlMessage *ctrl)
 
NetAdapterDataMessage * EMANE::NetAdapterDataMessageToHost (NetAdapterDataMessage *pkt)
 converts netadapter data message from network to host byte order. More...
 
NetAdapterDataMessage * EMANE::NetAdapterDataMessageToNet (NetAdapterDataMessage *pkt)
 converts netadapter data message from host to network byte order. More...
 

Variables

const std::uint16_t EMANE::NETADAPTER_DATA_MSG = 1
 
const std::uint16_t EMANE::NETADAPTER_CTRL_MSG = 2
 
std::uint16_t u16Id_
 
std::uint32_t u32Length_
 
std::uint8_t data_ [0]
 
std::uint16_t u16Src_
 
std::uint16_t u16Dst_
 
std::uint32_t u32DataLen_
 
std::uint32_t u32CtrlLen_
 
std::uint8_t u8Priority_
 
const std::uint16_t EMANE::NETADAPTER_BROADCAST_ADDRESS = 0xFFFF
 definition of the broadcast address used between network adapter and nem. More...
 

Variable Documentation

◆ data_

std::uint8_t data_[0]

Pointer to message payload

Definition at line 45 of file netadaptermessage.h.

◆ u16Dst_

std::uint16_t u16Dst_

Definition at line 81 of file netadaptermessage.h.

◆ u16Id_

std::uint16_t u16Id_

Event id

Definition at line 43 of file netadaptermessage.h.

◆ u16Src_

std::uint16_t u16Src_

Definition at line 80 of file netadaptermessage.h.

◆ u32CtrlLen_

std::uint32_t u32CtrlLen_

Definition at line 83 of file netadaptermessage.h.

◆ u32DataLen_

std::uint32_t u32DataLen_

Definition at line 82 of file netadaptermessage.h.

◆ u32Length_

std::uint32_t u32Length_

Total message length in bytes

Definition at line 44 of file netadaptermessage.h.

◆ u8Priority_

std::uint8_t u8Priority_

Definition at line 84 of file netadaptermessage.h.