summaryrefslogtreecommitdiff
path: root/pidl/lib
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-08-05 23:14:03 +0400
committerMatthieu Patou <mat@matws.net>2011-08-06 01:33:08 +0400
commit987b25d7e0fab19533fdbae63de22d74bdd8fbf7 (patch)
treeea9b438e34b77228ee37ffb30712a16d7e34aead /pidl/lib
parent403f064744e648edc86a6e21b174d92330ef8642 (diff)
downloadsamba-987b25d7e0fab19533fdbae63de22d74bdd8fbf7.tar.gz
samba-987b25d7e0fab19533fdbae63de22d74bdd8fbf7.tar.bz2
samba-987b25d7e0fab19533fdbae63de22d74bdd8fbf7.zip
pidl: for wireshark use only the major of the version
Diffstat (limited to 'pidl/lib')
-rw-r--r--pidl/lib/Parse/Pidl/Wireshark/NDR.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 45b6c1e5f6..46c9850b56 100644
--- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -905,16 +905,15 @@ sub ProcessInterface($$)
. ", 0x" . substr($if_uuid, 35, 2) . " }");
$self->pidl_def("};");
- my $maj = $x->{VERSION};
+ my $maj = 0x0000FFFF & $x->{VERSION};
$maj =~ s/\.(.*)$//g;
- $self->pidl_def("static guint32 ver_dcerpc_$x->{NAME} = $maj;");
+ $self->pidl_def("static guint16 ver_dcerpc_$x->{NAME} = $maj;");
$self->pidl_def("");
}
$return_types{$x->{NAME}} = {};
$self->Interface($x);
-
$self->pidl_code("\n".DumpFunctionTable($x));
foreach (keys %{$return_types{$x->{NAME}}}) {