fix snapshot length retrieval
Merge pull request #628 from koeppea/fix-pcap-read

fix snapshot length retrieval