pidl: handle hyper attribute for wireshark
authorMatthieu Patou <mat@matws.net>
Tue, 2 Aug 2011 18:42:58 +0000 (22:42 +0400)
committerMatthieu Patou <mat@matws.net>
Fri, 5 Aug 2011 21:33:07 +0000 (01:33 +0400)
pidl/lib/Parse/Pidl/Wireshark/NDR.pm

index 8c236a6020e92adda1d8f7b627aff8473fd212cd..4ff5f41e11e70c895d4b843b820e66368ce54390 100644 (file)
@@ -889,6 +889,7 @@ sub Initialize($$)
                $self->register_type("int$bits", "offset = PIDL_dissect_uint$bits(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);", "FT_INT$bits", "BASE_DEC", 0, "NULL", $bytes);
        }
                
+       $self->register_type("hyper", "offset = dissect_ndr_uint64(tvb, offset, pinfo, tree, drep, \@HF\@, NULL);", "FT_UINT64", "BASE_DEC", 0, "NULL", 8);
        $self->register_type("udlong", "offset = dissect_ndr_duint32(tvb, offset, pinfo, tree, drep, \@HF\@, NULL);", "FT_UINT64", "BASE_DEC", 0, "NULL", 4);
        $self->register_type("bool8", "offset = PIDL_dissect_uint8(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);","FT_INT8", "BASE_DEC", 0, "NULL", 1);
        $self->register_type("char", "offset = PIDL_dissect_uint8(tvb, offset, pinfo, tree, drep, \@HF\@, \@PARAM\@);","FT_INT8", "BASE_DEC", 0, "NULL", 1);