Ethereal-dev: [Ethereal-dev] How to convert one file to libpcap file format?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Yiqiang Chen" <yiqiang@xxxxxxxxxx>
Date: Fri, 29 Apr 2005 14:03:13 -0400
Title: How to convert one file to libpcap file format?

Hi,
(1) I need to convert one  binary log file to libpcap file format, so that I can use Ethereal to open this file and analyze the raw data in my log file.

How to convert binary log file to libpcap file format?
I build Ethereal executable for  Ethereal source code. Is there any function which can be used to convert any file to
libpcap file format?
(2) When I caputure the packet using Ethereal, which function in Ethereal source code is used to save the file in libpcap format?

(3) Where can I get the information or documentation for the libpcap file format (e.g. content of the  header, payload, ...)?

Thanks a lot for help.

Yi Qiang Chen