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

Packet data is Zero - Packet size limited during capture #11

Open
ShlomiRex opened this issue Sep 13, 2019 · 4 comments
Open

Packet data is Zero - Packet size limited during capture #11

ShlomiRex opened this issue Sep 13, 2019 · 4 comments

Comments

@ShlomiRex
Copy link

Screenshot from 2019-09-13 03-11-55

ESP32 using NodeMCU. No modification were done to the origional code. Baud rate was 921600.

@wgaylord
Copy link

wgaylord commented Nov 7, 2019

Also getting this error.

@MIst3rM
Copy link

MIst3rM commented Jan 27, 2020

Getting the same error. Any updates on this issue?

@realfogman
Copy link

Same issue here on a TTGO-T Cell 18650 ESP32 Board.
So I checked the code and found out, that un-commenting

#if defined(ESP32)
if(incl_len > snaplen) incl_len = snaplen; /* safty check that the packet isn't too big (I ran into problems with the ESP8266 here) */
#endif

line 80-82 in PCAP.cpp solves that issue, but brings the "Malformed Packet" issue.
Btw: snaplen is defined as
uint32_t snaplen = sizeof(int);
which in my simple knowledge is 4?
Almost every received packet is greater than 4, such that the data will be virtually removed?

@spacehuhn
Copy link
Owner

I set snaplen to 2500 now. That should do the trick for WiFi.
I think originally it was suppose to use the max value of an integer there but I must have failed horribly.

Thanks for pointing out the source of the issue. Haven't touched this code in forever.

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

5 participants