http://codereview.appspot.com/171049/diff/1/53#newcode76
src/common/pcap-file-object.cc:76: bool rc = file.Write (s, us, buffer,
bufferSize);
The use of this PcapFile class makes the Packet::CopyData (std::ostream
&os) useless. I would support its removal and replacement with
Packet::CopyData (const PcapFile *pcap) instead which would save you
these nasty new/delete calls.