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).
Showing
- scapy/contrib/bgp.py 6 additions, 7 deletionsscapy/contrib/bgp.py
- scapy/layers/eap.py 6 additions, 7 deletionsscapy/layers/eap.py
- scapy/layers/ntp.py 6 additions, 7 deletionsscapy/layers/ntp.py
- scapy/layers/radius.py 6 additions, 8 deletionsscapy/layers/radius.py
- scapy/packet.py 19 additions, 15 deletionsscapy/packet.py
- test/regression.uts 5 additions, 0 deletionstest/regression.uts
Loading
Please register or sign in to comment