DLT_RAW captures (linktype 101) were not handling IPv6 packets
For DLT_RAW, PcapPacketReader::getUDPPacket() synthesizes a fake
ethertype value (the "contentCode" variable), but for IPv6 it was
incorrectly set to 0x0806 (ARP) instead of 0x86dd (IPv6). This caused
IPv6 packets to silently be discarded.
I'm not entirely sure why this code was offsetting the IPv6
source/destination header fields, but this commit removes those offsets.
This results in the obfuscation of the first 64 bits of the IPv6
source/destination addresses. (Arguably the whole address should be
Make the IPv6 code path follow the IPv4 code path by writing out the
IPObfuscator counter in network byte order.
This makes the obfuscated IPv6 addresses easier to read and avoids
making the output of the tool vary based on the host byte order.