Ethereal-dev: [ethereal-dev] Writing pcap files ...

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

From: Richard Sharpe <sharpe@xxxxxxxxxx>
Date: Mon, 27 Sep 1999 11:32:34 +0900
Hi,

well, having had a look a little more, I think I can hack up libpcap.c in
wiretap to allow me to write these things back, then I can write some code
that uses wtap_offline_open, then writes a header with pcap_write_header,
reads each record with wtap_read and writes them with pcap_write ...

Will take a bit more effort though ... and I really should have a
wtap_write_header and wtap_write routines ...



Regards
-------
Richard Sharpe, sharpe@xxxxxxxxxx, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course