[patch] Update pidl (wireshark) to allow larger version numbers

Brad Hards bradh at frogmouth.net
Fri Mar 5 00:53:28 MST 2010


When using pidl to update the mapi dissector, I hit a problem with large 
version numbers. That causes an error when building in wireshark.

Here is a trivial fix.

Brad

index b8adf2d..5479a0e 100644
--- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -813,7 +813,7 @@ sub ProcessInterface($$)
        
            my $maj = $x->{VERSION};
            $maj =~ s/\.(.*)$//g;
-           $self->pidl_def("static guint16 ver_dcerpc_$x->{NAME} = $maj;");
+           $self->pidl_def("static guint32 ver_dcerpc_$x->{NAME} = $maj;");
            $self->pidl_def("");
        }
 


More information about the samba-technical mailing list