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

Simple block in PCapNg

0

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 ♦♦

One Answer:

1

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.

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 ♦♦