Skip to content

Packet and Fields API #58

@gabhijit

Description

@gabhijit

Right now our dissector - just dumps the json of the packet and does nothing else. But for a better programmability - A dissector should support at-least following APIs (which actually mimic wireshark's API, but are more Pythonic)

Packet - is a tree of Field s and a Buffer and some metadata (Think of things from pcap_header)

A Field maps roughly to wireshark's proto_node and fileld_info structure combined - among other things it should have -

  1. Name
  2. Abbrev
  3. summary (something that we are dumping in json)
  4. details (something we are dumping in Packet Details)
  5. Level (just easier for displaying)
  6. start / length -> 'offset' into Packet's byte array.
  7. first_child, last_child, parent, next

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions