diff options
author | Tim Potter <tpot@samba.org> | 2005-09-06 01:52:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:36:33 -0500 |
commit | e817e44bfe3f9af27d3ce8cba563e559d79e5eb5 (patch) | |
tree | b3546f7223575568a662a18982a26ab5880dc2a0 /source4/pidl/lib/Parse/Pidl/Ethereal | |
parent | 10a160ac2d572f74d322b28db6d631a6f96d69ab (diff) | |
download | samba-e817e44bfe3f9af27d3ce8cba563e559d79e5eb5.tar.gz samba-e817e44bfe3f9af27d3ce8cba563e559d79e5eb5.tar.bz2 samba-e817e44bfe3f9af27d3ce8cba563e559d79e5eb5.zip |
r10047: Translate an idl NTTIME to an ethereal FT_ABSOLUTE_TIME instead of
a FT_UINT64. Not sure about a NTTIME_hyper though.
(This used to be commit 42568d3f286679656417301d1cf29d3f0cd71030)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Ethereal')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm index dbaf12b572..ee774d1898 100644 --- a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm +++ b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm @@ -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"); |