-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update isinstance(EnumField) for scapy 2.3.3+
scapy 2.3.2- requires that scapy.fields.EnumField is passed to isinstance, while scapy 2.3.3+ needs scapy.fields._EnumField. This patch accomodates pyrit for both versions. Fixes #500.
- Loading branch information
Ilya Terentyev
committed
Nov 1, 2016
1 parent
e95b3df
commit 14ec997
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Depending on the type of pcap file you analyze, it may encounter the following:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/pckttools.py", line 82, in isFlagSet
if val not in field.i2s:
TypeError: argument of type 'NoneType' is not iterable
By Adding the following after if isEnumField(field): and before if val not in field.i2s:
if field.i2s is None:
return False
It will catch field.i2s variable when it is Null.