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

[Bug] safe_pcap_next ERROR: Invalid packet length in send_packets.c:get_next_packet() #565

Closed
cgi1 opened this issue Jul 28, 2019 · 3 comments

Comments

@cgi1
Copy link

cgi1 commented Jul 28, 2019

# sudo tcpreplay --multiplier=1 -i lo 2019-05-23.pcap
Warning: Unable to process unsupported DLT type: BSD loopback (0x0)              
safe_pcap_next ERROR: Invalid packet length in send_packets.c:get_next_packet() 
method: PF_PACKET send()
line 1068: 75674 is greater than maximum 65549       

Than the program simply exit.

The code of the last warning is exactly here and has been added as a response to another bug.

To Reproduce
Steps to reproduce the behavior:

  1. Had a fully working version of tcpreplay v.4.2.6 from tarball where some warnings came up, but the replay in general worked.
  2. Than upgraded to v4.3.2, new warning and now the program simply quits.

Expected behavior
Be able to read and replay of packages > 65549 (which does not looks like the correct value, the resolution for the other bug where a max len of 262144)

System (please complete the following information):

  • Ubuntu 18.04
  • Tcpreplay Version 4.3.2
@fklassen
Copy link
Member

Can you supply a packet capture? Easiest is to rename to *pcap.txt and attach.

@cgi1
Copy link
Author

cgi1 commented Jul 31, 2019

Unfortunately I can not post it public, becaues this is closed data. I can upload it and send you a link via mail, if this is suitable for you?

@fklassen
Copy link
Member

fklassen commented Jun 3, 2020

I believe this issue is resolved int #571 which significantly increases maximum snaplen. Closing for now. Reopoen if reproduced, and will get pcap file from you.

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

No branches or pull requests

2 participants