Ethereal-dev: [ethereal-dev] WireTap routines

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 05:31:04 +0900
Hi,

I was looking at using wiretap to write a small program that would read a
capture file and filter out frames I don't want.

I could not find a wtap_open routine ... Does such a thing exist?

I could fine wtap_read and wtap_close, but not the open.

I had envisioned (have to remember not to write envisage for USians ;-)
that I would do something like:

  get file name of command line
  wth = wtap_open(file);
  while (wtap_read(buff)) {

   if user wants this frame
     write it out
  }
  wtap close ...


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