Ethereal-users: [Ethereal-users] Text2pcap - Timestamps problem on Windows98 (Swedish)

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

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Sat, 12 Apr 2003 11:43:04 +0100
Hi,

I have had some problems getting the "-t" option to work with text2pcap. I have tried several times and in
some different ways but I always get "Jan 1, 1970 01:00:00.000000" for every packet. 
The text2pcap program is from Ethereal 0.9.11 distribution, but I have tried this with some earlier version also. 
I have been experimenting with this on a Windows 98 (4.10.1998, Swedish) and always got this
result.

However now I noticed that it is working on my Windows 2000 PC (English edition). On that PC I get the
correct timestamps.

Is there anyone that has any hints of what may cause this problem? I could probably make a modified
text2pcap version that adds some extra debug printouts e.g. in parse_preamble() routine to get some more
details. 

One of the samples I have tried is an extract from the following message:
http://www.ethereal.com/lists/ethereal-dev/200111/msg00290.html


text2pcap -t "%d/%m/%Y %H:%M:%S." -l 9 "text-trace.txt" "text-trace.cap"

22/11/2001 20:03:24.4375
0000  21 45 00 00 3E 26 2E 00 00 80 11 8E 53 9E 98 47 !E..>&...?.?S??G
0010  D2 9E 98 01 2B 06 A1 00 35 00 2A 71 EF 00 A1 01 Ò??.+.¡.5.*qï.¡.
0020  00 00 01 00 00 00 00 00 00 03 77 77 77 08 65 74 ..........www.et
0030  68 65 72 65 61 6C 03 63 6F 6D 00 00 01 00 01    hereal.com..... 

22/11/2001 20:03:24.6093
0000  21 45 00 01 FE E7 42 00 00 3D 11 0E 7F 9E 98 01 !E..þçB..=..??.
0010  2B 9E 98 47 D2 00 35 06 A1 01 EA 32 11 00 A1 81 +??GÒ.5.¡.ê2..¡?
0020  80 00 01 00 01 00 0D 00 0D 03 77 77 77 08 65 74 ?.........www.et
0030  68 65 72 65 61 6C 03 63 6F 6D 00 00 01 00 01 C0 hereal.com.....À
0040  0C 00 01 00 01 00 01 2B AB 00 04 41 D0 E4 DE C0 .......+«..AÐäÞÀ
0050  19 00 02 00 01 00 01 AA FC 00 14 01 46 0C 47 54 .......ªü...F.GT
0060  4C 44 2D 53 45 52 56 45 52 53 03 4E 45 54 00 C0 LD-SERVERS.NET.À
0070  19 00 02 00 01 00 01 AA FC 00 04 01 4A C0 40 C0 .......ªü...JÀ&#x40;À
0080  19 00 02 00 01 00 01 AA FC 00 04 01 4B C0 40 C0 .......ªü...KÀ&#x40;À
0090  19 00 02 00 01 00 01 AA FC 00 04 01 45 C0 40 C0 .......ªü...EÀ&#x40;À
00A0  19 00 02 00 01 00 01 AA FC 00 04 01 4D C0 40 C0 .......ªü...MÀ&#x40;À
00B0  19 00 02 00 01 00 01 AA FC 00 04 01 41 C0 40 C0 .......ªü...AÀ&#x40;À
00C0  19 00 02 00 01 00 01 AA FC 00 04 01 47 C0 40 C0 .......ªü...GÀ&#x40;À
00D0  19 00 02 00 01 00 01 AA FC 00 04 01 48 C0 40 C0 .......ªü...HÀ&#x40;À
00E0  19 00 02 00 01 00 01 AA FC 00 04 01 43 C0 40 C0 .......ªü...CÀ&#x40;À
00F0  19 00 02 00 01 00 01 AA FC 00 04 01 49 C0 40 C0 .......ªü...IÀ&#x40;À
0100  19 00 02 00 01 00 01 AA FC 00 04 01 42 C0 40 C0 .......ªü...BÀ&#x40;À
0110  19 00 02 00 01 00 01 AA FC 00 04 01 44 C0 40 C0 .......ªü...DÀ&#x40;À
0120  19 00 02 00 01 00 01 AA FC 00 04 01 4C C0 40 C0 .......ªü...LÀ&#x40;À
0130  3E 00 01 00 01 00 00 E0 61 00 04 C0 23 33 1E C0 >......àa..À#3.À
0140  5E 00 01 00 01 00 00 E4 E4 00 04 D2 84 64 65 C0 ^......ää..Ò?deÀ
0150  6E 00 01 00 01 00 00 D3 1D 00 04 D5 B1 C2 05 C0 n......Ó...Õ±Â.À
0160  7E 00 01 00 01 00 00 D1 B2 00 04 C0 0C 5E 1E C0 ~......Ѳ..À.^.À
0170  8E 00 01 00 01 00 00 CC 49 00 04 CA 99 72 65 C0 ?......ÌI..Ê?reÀ
0180  9E 00 01 00 01 00 02 91 EA 00 04 C0 05 06 1E C0 ?......?ê..À...À
0190  AE 00 01 00 01 00 00 D7 5D 00 04 C0 2A 5D 1E C0 ®......×]..À*].À
01A0  BE 00 01 00 01 00 00 DB 6E 00 04 C0 36 70 1E C0 ¾......Ûn..À6p.À
01B0  CE 00 01 00 01 00 00 EF ED 00 04 C0 1A 5C 1E C0 Î......ïí..À.\.À
01C0  DE 00 01 00 01 00 00 E9 F5 00 04 C0 24 90 85 C0 Þ......éõ..À$??À
01D0  EE 00 01 00 01 00 00 E7 44 00 04 C0 21 0E 1E C0 î......çD..À!..À
01E0  FE 00 01 00 01 00 00 E4 1F 00 04 C0 1F 50 1E C1 þ......ä...À.P.Á
01F0  0E 00 01 00 01 00 00 D8 22 00 04 C0 29 A2 1E    .......Ø"..À)¢. 

22/11/2001 20:03:24.6250
0000  21 45 00 00 30 26 2F 40 00 80 06 C7 7F 9E 98 47 !E..0&/&#x40;.?.Ç??G
0010  D2 41 D0 E4 DE 06 A2 00 50 34 B9 19 74 00 00 00 ÒAÐäÞ.¢.P4¹.t...
0020  00 70 02 40 00 E0 E6 00 00 02 04 05 B4 01 01 04 .p.@xàæ.....´...
0030  02                                              .               

22/11/2001 20:03:24.8750
0000  21 45 00 00 30 85 96 40 00 2C 06 BC 18 41 D0 E4 !E..0??@.,.¼.AÐä
0010  DE 9E 98 47 D2 00 50 06 A2 88 05 A0 21 34 B9 19 Þ??GÒ.P.¢?.?!4¹.
0020  75 70 12 7D 78 7B 36 00 00 02 04 05 B4 01 01 04 up.}x{6.....´...
0030  02                                              .               

22/11/2001 20:03:24.8750
0000  21 45 00 00 28 26 31 40 00 80 06 C7 85 9E 98 47 !E..(&1@x?.Ç???G
0010  D2 41 D0 E4 DE 06 A2 00 50 34 B9 19 75 88 05 A0 ÒAÐäÞ.¢.P4¹.u?.?
0020  22 50 10 44 70 E1 02 00 00                      "P.Dpá...