There is likely a bug in demote_packet(), when removing a Linux SLL header (which libtrace treats as a link-layer header) from a packet the code doesn't decrease the wire length only the capture length. I've only added code to decrease it in the pcap: case to reverse the actions applied by promote_packet().
See:
|
/* TODO: should we change the wirelen here too? */ |
cd8cd74