Back to index

natlog  0.91.0
indevice.cc
Go to the documentation of this file.
00001 #include "pcapfilter.ih"
00002 
00003 void PcapFilter::inDevice(PcapPacket const &packet)
00004 {
00005     if (packet.flags(PcapPacket::SYN | PcapPacket::ACK))
00006         saveAdd(packet);    // src and dest are available
00007     else if (packet.flags(PcapPacket::FIN | PcapPacket::ACK))
00008         saveRemove(packet);    
00009 }
00010 
00011 
00012