tcpdump mailing list archives
Re: gzip and tcpdump...
From: Maik Pfeil <root () bundesspionageministerium de>
Date: Thu, 27 Feb 2003 06:21:36 +0100 (CET)
---------- Forwarded message ---------- Date: Wed, 26 Feb 2003 05:32:06 +0100 (MET) From: Rob Braun <bbraun () synack net> To: arbon () gmx de Subject: Re: tcpdump-workers () tcpdump org Thanks for pointing that out. The real issue is what to do in the writing case, since the user should be able to specify compressed or uncompressed output. Rob On Wed, Feb 26, 2003 at 03:01:13AM +0100, Maik Pfeil wrote:
There is no need to detect weather a file is gzipped or not. You can simply replace the normal fopen/open calls with gzopen or the close/fclose calls with gzclose. The function gzopen check the file and if it is gzipped it start the deflating, if not it works like the normal open function. In the APSR Project, www.aa-security.de, we work with this method. Maybe, if someone need a patch or an example, just a drop line. Greets, Maik Please reply to arbon () gmx de, thanks -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
- This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- gzip and tcpdump... rmkml (Feb 25)
- Re: gzip and tcpdump... Matt Bing (Feb 25)
- Re: gzip and tcpdump... Guy Harris (Feb 25)
- Re: gzip and tcpdump... Darren Reed (Feb 26)
- Re: gzip and tcpdump... Guy Harris (Feb 26)
- Re: gzip and tcpdump... John Hawkinson (Feb 26)
- Re: gzip and tcpdump... Matt Bing (Feb 26)
- Re: gzip and tcpdump... Guy Harris (Feb 25)
- Re: gzip and tcpdump... Matt Bing (Feb 25)
- Re: gzip and tcpdump... Rob Braun (Feb 25)
- RE: gzip and tcpdump... Fulvio Risso (Feb 25)
- <Possible follow-ups>
- Re: gzip and tcpdump... Maik Pfeil (Feb 26)
- Re: gzip and tcpdump... arbon (Feb 26)