-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Are there any plans to support VLAN sniffing directly via scapy sniff()?
AFAIK normal sniff() does not show captured VLAN tags, as they are removed by
the linux kernel.
When i am using the following code within the scapy shell:
conf.use_pcap=True
import scapy.arch.pcapdnet
p=sniff(iface='enp3s0', count=20, timeout=10)
I got all packets including the 802.1Q tags.
Using the same code within a normal python shell does not work. No packets are captured.
Are there any hints how to make the sniff() work within a python shell?