pcap2har seem to have a problem with "Linux Cooked" captures?

125 views
Skip to first unread message

dekela

unread,
Apr 28, 2011, 7:52:13 AM4/28/11
to pcap2har
Andrew,

I am using tcpdump to capture and my capture is "Linux Cooked" Capture
because of the data type.
Seems like it causes an issue with dpkt?


root@dekel:# ./main.py dekel.pcap dekel.har
Traceback (most recent call last):
File "./main.py", line 44, in <module>
pcap.ParsePcap(dispatcher, filename=inputfile)
File "/var/www/pcap2har/pcap.py", line 51, in ParsePcap
eth = dpkt.sll.SLL(pkt[1])
NameError: global name 'pkt' is not defined


I can send you a capture as an example,

Thanks
Dekel

Andrew Fleenor

unread,
Apr 28, 2011, 11:54:12 PM4/28/11
to pcap...@googlegroups.com
Yes, please send me a sample capture. In the meantime, try the fix I just pushed. it looks like it's just a naming issue.
Reply all
Reply to author
Forward
0 new messages