mirror of https://github.com/secdev/scapy.git
Adding LELongField
This commit is contained in:
parent
680900dbbf
commit
74eba54954
|
@ -875,7 +875,8 @@ Legend:
|
|||
LESignedIntField
|
||||
XIntField
|
||||
|
||||
LongField
|
||||
LongField
|
||||
LELongField
|
||||
XLongField
|
||||
LELongField
|
||||
|
||||
|
|
|
@ -365,6 +365,10 @@ class LongField(Field):
|
|||
def __init__(self, name, default):
|
||||
Field.__init__(self, name, default, "Q")
|
||||
|
||||
class LELongField(LongField):
|
||||
def __init__(self, name, default):
|
||||
Field.__init__(self, name, default, "<Q")
|
||||
|
||||
class XLongField(LongField):
|
||||
def i2repr(self, pkt, x):
|
||||
return lhex(self.i2h(pkt, x))
|
||||
|
|
Loading…
Reference in New Issue