Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] UCP Dissector bugfixes

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sun, 14 Oct 2001 20:49:58 -0700
On Sun, Oct 14, 2001 at 03:31:11PM +0200, Steffen Weinreich wrote:
>  - the SCTC Timestamp will not be decoded correctly under Linux

"mktime()" is pretty much the same on all UNIX-flavored OSes - and even
the non-UNIX-flavored ones that support it, as it's part of the ANSI C
standard.

I.e., I think the above can be rephrased as

	 - the SCTC Timestamp will not be decoded correctly

as any platform on which

	tm_mon isn't 0-origin (i.e., January is 0, December is 11)

or

	tm_year isn't the year number - 1900

doesn't have a valid hosted implementation of C - and I think most if
not all modern UNIXes plus modern C compilers, as well as Microsoft
Visual C++, at least get those parts of "mktime()" right.

(Does the date string in UCP really have a *two-digit* year field?  If
so, did the people who designed it assume it would not be of interest by
2100? That may be a valid assumption, but, still....)