libtins
libtins copied to clipboard
Exception thrown when parsing truncated transport-layer payload in IPv6 packets
When parsing a pcap file containing IPv6 packets with truncated transport-layer payloads, libtins throws an exception. However, this packet has a complete UDP header.
Tins::FileSniffer sniffer("ipv6_truncated.pcap");
Tins::Packet pkt = sniffer.next_packet();
// pkt.pdu() is nullptr
Sample pcap: ipv6_truncated.pcap.zip