classSLLv2(baseobj.BaseObj)
Extensible record format object
Usage:
from packet.link.sllv2 import SLLv2
x = SLLv2(pktt)
Object definition:
SLLv2(
etype = int, # Protocol type
index = int, # Interface index
dtype = int, # Device type
ptype = int, # Packet type
alen = int, # Address length
saddr = int, # Source Address
psize = int, # Payload data size
)
Methodsdefinedhere:
---------------------
__init__(self,pktt)
Constructor
Initialize object's private data.
pktt: Packet trace object (packet.pktt.Pktt) so this layer has
access to the parent layers.
__str__(self)
String representation of object
The representation depends on the verbose level set by debug_repr().
If set to 0 the generic object representation is returned.
If set to 1 the representation of the object is condensed:
"SLLv2 etype: 0x86dd, index: 3, dtype: 65534, ptype: 4, alen: 0, saddr: b'', psize: 116"