Skip to content

KeyError: 101 #32

@xingyunjohn1

Description

@xingyunjohn1

run python2 ./main.py 1.pcap 1.har gets:

Traceback (most recent call last):
  File "./main.py", line 65, in <module>
    dispatcher = pcap.EasyParsePcap(filename=inputfile)
  File "/mnt/r/pcap2har-master/pcap2har-master/pcap2har/pcap.py", line 80, in EasyParsePcap
    ParsePcap(dispatcher, filename=filename, reader=reader)
  File "/mnt/r/pcap2har-master/pcap2har-master/pcap2har/pcap.py", line 27, in ParsePcap
    pcap = ModifiedReader(f)
  File "/mnt/r/pcap2har-master/pcap2har-master/pcap2har/pcaputil.py", line 122, in __init__
    self.dloff = dpkt.pcap.dltoff[self.__fh.linktype]
KeyError: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions