Fix pcap parsing

This commit fixes pcap parsing, which got broken in commit 67ffe014b959159f9b7b8a240a58f0cbbd9b24f7.