Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packet and Fields API #58

Open
gabhijit opened this issue Aug 20, 2020 · 0 comments
Open

Packet and Fields API #58

gabhijit opened this issue Aug 20, 2020 · 0 comments

Comments

@gabhijit
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant