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

Hello, I have included PCapNg files support to my program, so it can open, read and write such files. It works fine when it writes enhanced blocks to the output file, they are seen and interpreted in WireShark correctly. Though when it writes simple blocks the output file starts looking for WireShark as corrupted and it issues an error "pcapng: interface index 3111035224 is not less than interface count 1". I don't know where it takes such wierd index cause there is no Interface id link in simple blocks as it was clearly mentioned in PCapNg specification.

asked 27 Sep '13, 08:25

Ravil's gravatar image

Ravil
1224
accept rate: 0%

edited 27 Sep '13, 08:29

Can you put a sample file somewhere so that I can take a look?

(27 Sep '13, 10:59) Jasper ♦♦

I verified this by creating a PCAPng file with frames in Simple Packet Blocks and opening them in Wireshark. In an older version I had the same interface index message; with the latest developer build it says that the file seems to be "cut short in the middle of a packet". So I opened a bug report.

permanent link

answered 28 Sep '13, 09:29

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

1

Several things were wrong with the code to read SPBs. Fixes have been checked into the trunk and the 1.10 and 1.8 branches.

(28 Sep '13, 15:07) Guy Harris ♦♦

Thanks a lot, Guy, awesome work!

(29 Sep '13, 01:13) Jasper ♦♦
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:

×9
×4

question asked: 27 Sep '13, 08:25

question was seen: 1,410 times

last updated: 29 Sep '13, 01:13

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