Skip to content

Question concerning VLAN sniffing handling? #969

@lidllohntsich

Description

@lidllohntsich

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions