Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Writing NoOp PCAP-NG Records

From: Paul Offord <Paul.Offord@xxxxxxxxxxxx>
Date: Tue, 5 Jul 2016 11:08:34 +0000

Hi,

 

I am writing a small utility that converts .etl network trace files produced by netsh trace into pcapng format.  The interface information is right at the end of the ETL file, but I need to create IDBs near the start of the pcapng file.  I don’t want to hold a whole converted trace file in memory and I’d prefer not to shuffle the data around in the pcapng file.  My plan is:

 

·        Write an “IDB segment” of null bytes where the IDB will go – enough to accomodate the maximum anticipated IDB blocks, say 2 KB

·        Once I get to the interface data in the ETL, seek back to the “IDB Segment”

·        Write the IDBs

·        Pad the “IDB segment” with the equivalent of NoOps

 

There is no NoOp block type and so I’m thinking of using a Custom Block

 

·        Would using a Custom Block in this way cause problems?

·        What value should I use for the Private Enterprise Number (PEN)?

·        Is there a better way of doing this?

 

Thanks and regards…Paul


______________________________________________________________________

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission.

Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________