Skip to content
Snippets Groups Projects
Commit c58e3184 authored by Phil's avatar Phil
Browse files

Ability to reference a packet's fields in another packet's fields description

class Test(Packet):
    fields_desc = [ IntField("test1",0),
                    SNAP,
                    IntField("test2",1) ]


>>> ls(SNAP)
OUI        : X3BytesField         = (0)
code       : XShortEnumField      = (0)
>>> ls(Test)
test1      : IntField             = (0)
OUI        : X3BytesField         = (0)
code       : XShortEnumField      = (0)
test2      : IntField             = (1)
parent 75bc9139
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment