Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLAN packets show when running directly but not when reading from file #1422

Closed
kaistian opened this issue Dec 19, 2024 · 3 comments
Closed

Comments

@kaistian
Copy link

tcpdump version 4.99.5
libpcap version 1.10.4 (with TPACKET_V3)
OpenSSL 3.3.2 3 Sep 2024

When i run tcpdump -ei bond0 host 10.2.104.113 and icmp on the machine I get output of ICMP packets with VLAN.

But when I run tcpdump -i bond0 -w icmp-vlan-tagged.pcap and then
tcpdump -er icmp-vlan-tagged.pcap host 10.2.104.113 and icmp
I don't get any output at all.

To make it work when reading from file I need to add vlan and at the start
tcpdump -er icmp-vlan-tagged.pcap vlan and host 10.2.104.113 and icmp

Shouldn't the first expression work no mater where I get the input data from?

@infrastation infrastation transferred this issue from the-tcpdump-group/tcpdump Dec 19, 2024
@kaistian
Copy link
Author

I don't know if it's useful, but I have a pcap file with one icmp packet in it, it was captured on Ubuntu 24.04 with
tcpdump version 4.99.1
libpcap version 1.10.1 (with TPACKET_V3)
OpenSSL 3.0.2 15 Mar 2022

icmp-vlan-tagged.pcap.gz

@infrastation
Copy link
Member

This looks very similar to #1387.

@kaistian
Copy link
Author

Yes, I was just about to close this as same as #1387.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants