Ethereal-dev: Re: [Ethereal-dev] How to read/import and display capture files with 1ns timesta
Guy Harris <guy@xxxxxxxxxxxx> schrieb am 23.08.05 19:32:17:
>
>
> At least some of what should be done here is to change Ethereal so that,
> when capturing, it doesn't use the regular Wiretap code path to write
> out the capture file. That way, Ethereal wouldn't have to, for example,
> convert seconds/microseconds time stamps from libpcap into
> seconds/nanoseconds time stamps to hand to Wiretap, and Wiretap wouldn't
> have to convert those back to seconds/microseconds time stamps. (By
> removing Wiretap from the critical path for capturing, it'd also let us
> standardize the presentation of "radio information" for 802.11, so we'd
> need only one WTAP_ENCAP value for that, and we wouldn't need separate
> dissectors for different radio headers - and could conceivably have the
> tap for 802.11 supply that information, letting us add, for example, a
> tap-based stat such as
>
> http://www.networkchemistry.com/products/packetyzer/images/ss_wlan_analysis.gif
>
> .)
>
> The code to write libpcap files when capturing would still be in
> Wiretap, but it'd be a special code path.
>
> I've started working on that, but got sidetracked into looking at the
> stat code and cleaning it up when I did an AFP SRT tap. I'll try to
> finish the capture changes soon.
>
First of all, I (currently) don't need to capture in nanosecond resolution, reading/importing would be enough. Capturing is done by a seperate hardware.
Having a look at the implementation, I've just added a new function (in my personal tree) to read the current timestamp resolution from wiretap (in the format provided by the NTAR spec, therefore the questions).
This way I'm now looking for a way to change the display to be corresponding to the file content. Simply changing the magic value or DLT_ (or alike) would be enough, no further changes to the file format required.
I've seen some more things need to think about, like calculation of time differences, capture file merging and alike.
But I need a prototype soon, so I'll try to implement the correct display first and then look at the remaining issues.
Regards, ULFL
_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179