Skip to content
Snippets Groups Projects
Commit 8ac38c61 authored by Pierre LALET's avatar Pierre LALET
Browse files

Allow filters in the Packet slice / .getlayer() API

With a packet `pkt = IP() / IP(ttl=3) / IP()`, this will allow:

  - pkt.getlayer(IP, ttl=3)
  - pkt[IP, {"ttl": 3}]

This is particularly useful with Dot11Elt() layers, when you want a
specific value (the SSID or supported rates for example).
parent 6e173e9f
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