-
Notifications
You must be signed in to change notification settings - Fork 274
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() line 1068: 92442 is greater than maximum 65549 #571
Comments
If PCAP is small enough, rename to |
Also see the-tcpdump-group/tcpdump#856 |
Including my comment, in which tcpdump, when run by a version of tcpprep compiled and run on macOS, printed "tcpdump: unknown file format" when I handed tcpprep a pcap file written by tcpdump. (That happened both with Apple's tcpdump, which was not writing pcapng files in this case, and a built-from-tip-of-master and linked-with-libpcap-built-from-tip-of-master tcpdump writing the file.) Configure output from tcpreplay:
(Note, BTW, that the tcpreplay.synfin.net link doesn't work.) |
Packets within the "my.pcap" file, or packets within whatever tcpprep is piping to tcpdump? If tcpdump can read your my.pcap file, it's probably not a problem with packets within the "my.pcap" file. Perhaps the code that's writing to the pipe to tcpdump is writing mangled output. |
I am starting work on this, but and finding it difficult to find a capture with a packet > 65535 bytes. Also, the maximum packet size should be 262144 to match maximum snaplen in Wireshark. It reflects libpcap's MAXIMUM_SNAPLEN. |
This function was not used anywhere, yet it consumed a complete packet buffer on the stack.
This function was not used anywhere, yet it consumed a complete packet buffer on the stack.
Now that MAXPACKET size has increased, it is no longer reasonable to allocate this much on the stack.
This function was not used anywhere, yet it consumed a complete packet buffer on the stack.
Now that MAXPACKET size has increased, it is no longer reasonable to allocate this much on the stack.
…o_262144 Bug #571 max packet from 65549 to 262144
Fixed in PR #593 |
Steps to reproduce the behavior:
Digging into source code, It looks like there are packages within the PCAP over the
MAXPACKET
variable, which is why the code fails here. I suggest upgradingMAXPACKET
from65549
to131098
in here.So:
Will become:
I just want to know, if you see any problems here. I am also a bit worried about the comment 16436 linux loopback, which looks like I should go with anouther type of interface to replay on.
System (please complete the following information):
Additional context
Could provide example PCAP private.
The text was updated successfully, but these errors were encountered: