Back to index

natlog  0.91.0
add.cc
Go to the documentation of this file.
00001 #include "pcaprecord.ih"
00002 
00003 void PcapRecord::add(PcapPacket const &packet, Type type)
00004 {
00005     //    cerr << "Device " << type << ", Packet flags: " << hex << 
00006     //              packet.flags() << '\n';
00007 
00008     if (type == IN)
00009         addIn(packet);
00010     else
00011         addOut(packet);
00012 }
00013