mirror of https://github.com/secdev/scapy.git
Merged in martingalloar/scapy/fields (pull request #75)
Added SignedShortField
This commit is contained in:
commit
34f6b32385
|
@ -856,6 +856,7 @@ Legend:
|
|||
XByteField
|
||||
|
||||
ShortField
|
||||
SignedShortField
|
||||
LEShortField
|
||||
XShortField
|
||||
|
||||
|
|
|
@ -280,6 +280,10 @@ class ShortField(Field):
|
|||
def __init__(self, name, default):
|
||||
Field.__init__(self, name, default, "H")
|
||||
|
||||
class SignedShortField(Field):
|
||||
def __init__(self, name, default):
|
||||
Field.__init__(self, name, default, "h")
|
||||
|
||||
class LEShortField(Field):
|
||||
def __init__(self, name, default):
|
||||
Field.__init__(self, name, default, "<H")
|
||||
|
|
Loading…
Reference in New Issue