EMANE  1.2.1
EMANE::Models::CommEffect::EthernetProtocolIPv4Rule Class Reference

#include <ethernetprotocolipv4rule.h>

Inheritance diagram for EMANE::Models::CommEffect::EthernetProtocolIPv4Rule:
EMANE::Models::CommEffect::EthernetProtocolRule EMANE::Models::CommEffect::Rule

Public Member Functions

 EthernetProtocolIPv4Rule (std::uint32_t u32Src, std::uint32_t u32Dst, std::uint16_t u16Len, std::uint8_t u8TOS, std::uint8_t u8TTL, const IPProtocolRules &rules)
 
 ~EthernetProtocolIPv4Rule ()
 
bool match (const void *buf, std::size_t len, std::uint16_t u16Type) override
 

Protected Attributes

std::uint16_t u16Type_
 
IPProtocolRules rules_
 

Detailed Description

Definition at line 46 of file ethernetprotocolipv4rule.h.

Constructor & Destructor Documentation

◆ EthernetProtocolIPv4Rule()

EMANE::Models::CommEffect::EthernetProtocolIPv4Rule::EthernetProtocolIPv4Rule ( std::uint32_t  u32Src,
std::uint32_t  u32Dst,
std::uint16_t  u16Len,
std::uint8_t  u8TOS,
std::uint8_t  u8TTL,
const IPProtocolRules rules 
)

Definition at line 42 of file ethernetprotocolipv4rule.cc.

◆ ~EthernetProtocolIPv4Rule()

EMANE::Models::CommEffect::EthernetProtocolIPv4Rule::~EthernetProtocolIPv4Rule ( )

Definition at line 67 of file ethernetprotocolipv4rule.cc.

Member Function Documentation

◆ match()

bool EMANE::Models::CommEffect::EthernetProtocolIPv4Rule::match ( const void *  buf,
std::size_t  len,
std::uint16_t  u16Type 
)
overridevirtual

Implements EMANE::Models::CommEffect::Rule.

Definition at line 71 of file ethernetprotocolipv4rule.cc.

Member Data Documentation

◆ rules_

IPProtocolRules EMANE::Models::CommEffect::EthernetProtocolRule::rules_
protectedinherited

Definition at line 67 of file ethernetprotocolrule.h.

◆ u16Type_

std::uint16_t EMANE::Models::CommEffect::EthernetProtocolRule::u16Type_
protectedinherited

Definition at line 62 of file ethernetprotocolrule.h.


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