This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I was running gns3 in my laptop and was simulating 3 routers with ospf configured. I started to capture using wireshark but it was showing an error (frame 151 too long (-1 bytes)) can some one give me a suitable solution for this?

asked 07 Aug '13, 12:18

arjun05's gravatar image

arjun05
11112
accept rate: 0%

edited 07 Aug '13, 12:53

grahamb's gravatar image

grahamb ♦
19.8k330206

Posting the capture somewhere others can see it, e.g. Cloudshark will allow others to help you, otherwise we have no idea what might be up in frame 151 of your capture.

(07 Aug '13, 12:54) grahamb ♦

This problem has been reported by others in the GNS3 forum.

http://forum.gns3.net/topic4796.html

I guess, that the GNS3 simulator creates a broken pcap file structure and Wireshark simply complains about that.

frame 151 too long (-1 bytes)

This message is generated by dumpcap if a frame is larger than the supported length of 65535 bytes.

dumpcap.c:

        if (pcap_opts->cap_pipe_rechdr.hdr.incl_len > WTAP_MAX_PACKET_SIZE) {
            g_snprintf(errmsg, errmsgl, "Frame %u too long (%d bytes)",
                       ld->packet_count+1, pcap_opts->cap_pipe_rechdr.hdr.incl_len);
            break;

wtap.h

/*
 * Maximum packet size we'll support.
 * 65535 is the largest snapshot length that libpcap supports, so we
 * use that.
 */
#define WTAP_MAX_PACKET_SIZE    65535

So, this is either a bug in GNS3 or a configuration problem, like using 'super Jumbo Frames' with packet length > 65535 bytes in GNS3.

I suggest to discuss this issue in the GNS3 forum, with a link to this question, as there is nothing the Wireshark 'community' can do about this problem.

Regards
Kurt

permanent link

answered 08 Aug '13, 06:03

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 08 Aug '13, 06:06

GNS3 uses dynamips. The capture file was being corrupted due to a thread safety issue in dynamips. The fix will be a part of dynamips 0.2.13.

Related issue: https://github.com/GNS3/dynamips/issues/41

(09 Jun '14, 12:18) flaviojs
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×7
×4

question asked: 07 Aug '13, 12:18

question was seen: 5,200 times

last updated: 09 Jun '14, 20:22

p​o​w​e​r​e​d by O​S​Q​A