sniff: support the snaplen option

For testing pkt:decode/2, allow the epcap snaplen option. To use
decode/2 with whole frames, set snaplen to 16#ffff.