Use the other write method in copy and move slots
from : write(packet->pktData, packet->pktHdr->caplen);
to   : write(packet);