fix issue with incorrect header->caplen in PcapDumper::dump