r10047: Translate an idl NTTIME to an ethereal FT_ABSOLUTE_TIME instead of
authorTim Potter <tpot@samba.org>
Tue, 6 Sep 2005 01:52:34 +0000 (01:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:36:33 +0000 (13:36 -0500)
a FT_UINT64.  Not sure about a NTTIME_hyper though.

source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm

index dbaf12b572071f078878ab8c47483300d5a299a5..ee774d1898c13f256b0443d3994bb72c6684fb34 100644 (file)
@@ -33,8 +33,12 @@ sub type2ft($)
  
     return "FT_UINT$1" if $t =~ /uint(8|16|32|64)/;
     return "FT_INT$1" if $t =~ /int(8|16|32|64)/;
-    return "FT_UINT64", if $t eq "HYPER_T" or $t eq "NTTIME"
-       or $t eq "NTTIME_1sec" or $t eq "NTTIME_hyper" or $t eq "hyper";
+    return "FT_UINT64", if $t eq "HYPER_T" or $t eq "NTTIME_hyper" 
+       or $t eq "hyper";
+
+    # TODO: should NTTIME_hyper be a FT_ABSOLUTE_TIME as well?
+
+    return "FT_ABSOLUTE_TIME" if $t eq "NTTIME" or $t eq "NTTIME_1sec";
 
     return "FT_STRING" if ($t eq "string");