Ethereal-dev: Re: [ethereal-dev] Ascend router capture

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

From: Ashok Narayanan <ashokn@xxxxxxxxx>
Date: Wed, 22 Sep 1999 03:09:21 -0400 (EDT)
Guy Harris writes:
 > Actually, another possibility comes to mind: having
 > "wtap_open_offline()" do an "open()" of the file, save the file
 > descriptor it gets back in the "wtap" structure, and then do a
 > "filed_open()" rather than a "file_open()".  Then an "fstat()" could be
 > done on that file descriptor.

I'm very unhappy about having two separate handles to the file - one
for reading the data through file(d)_open and another through
fopen. Given that starting capture is done through a CLI command
(presumably), the exact time of this is not that useful, IMHO. This is 
the only thing we gain.

I've fixed ascend.c and ascend-scanner.l to get this to work with gzip 
files now. The .txt file you sent me seems to have broken times as you 
mentioned. Gilbert sent me a .gz-ed ascend trace which seems to load
fine. Incidentally, the progress bar doesn't move with Ascend captures 
- though I don't believe this has changed.

I'm going to test it on my Sun box, then check it in unless you want
me to change anything?

-Ashok

-- 
--- Asok the Intern ----------------------------------------
IOS Network Protocols, Cisco Systems
250 Apollo Drive, Chelmsford, MA 01824
Ph: 978-244-8387