53   std::for_each(rules_.begin(),
    55                 [](
const Rule * p){
delete p;});
    77   return std::find_if(rules_.begin(),
    80                                 std::placeholders::_1,
    81                                 static_cast<const std::uint8_t *>(buf) + offset,
    82                                 len - offset, pHdr->
u16proto)) != rules_.end();
 
virtual bool match(const void *buf, std::size_t len, std::uint16_t u16Type)=0
 
std::list< EthernetProtocolRule * > EthernetProtocolRules
 
const std::uint16_t ETH_HEADER_LEN
Ethernet header length. 
 
bool match(const void *buf, std::size_t len)