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

WARNING: API change. Work on Packet.__getitem__(), __setitem__() and __delitem__()

- Packet.__getitem__() raises an IndexError if asked layer is not found
- Added Packet.__setitem__() to replace a layer by another
  ex: del(pkt[Raw])
- Added Packet.__delitem__() to remove a layer and its sublayers
  ex: pkt[Raw] = Raw(load="another payload")
parent 76539e14
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