Skip to content
Snippets Groups Projects
  • Pierre LALET's avatar
    Allow filters in the Packet slice / .getlayer() API · 8ac38c61
    Pierre LALET authored
    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).
    8ac38c61