From 74eba54954edd9f43229b0afb40c8b4e15934255 Mon Sep 17 00:00:00 2001 From: Martin Gallo Date: Wed, 29 Nov 2017 21:36:03 -0300 Subject: [PATCH] Adding LELongField --- doc/scapy/build_dissect.rst | 3 ++- scapy/fields.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/scapy/build_dissect.rst b/doc/scapy/build_dissect.rst index 3312edde5..93566012d 100644 --- a/doc/scapy/build_dissect.rst +++ b/doc/scapy/build_dissect.rst @@ -875,7 +875,8 @@ Legend: LESignedIntField XIntField - LongField + LongField + LELongField XLongField LELongField diff --git a/scapy/fields.py b/scapy/fields.py index 818922819..66a55b2e4 100644 --- a/scapy/fields.py +++ b/scapy/fields.py @@ -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, "