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

Pcap generated from P4pktgen has empty packets #102

Open
aatish17varma opened this issue May 16, 2019 · 1 comment
Open

Pcap generated from P4pktgen has empty packets #102

aatish17varma opened this issue May 16, 2019 · 1 comment

Comments

@aatish17varma
Copy link

Hello,

I am trying to use the pcap file generated by P4pktgen by manually passing it to a bmv2 switch using scapy. However, upon inspecting the packets on WireShark, I see that the packets are empty.

Attached is the Wireshark inspection of the packets. Do you know why this is?

Messages Image(3550569911)

@jafingerhut
Copy link
Contributor

Sorry for not noticing this question earlier. From what you see on the screen, it appears that is a 14-byte packet consistent of an Ethernet header, all 14 bytes equal to 0.

That is not the same as an empty packet, i.e. a packet that is 0 bytes in length.

It is true that on a physical Ethernet interface, all frames must be at least 64 bytes long. Any Ethernet frames shorter than 64 bytes should be possible to pad up to 60 bytes long, then add a correct CRC. I don't have a program handy to point you at that can do that, but it would not be difficult to make one.

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

No branches or pull requests

2 participants