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

index 7c10a535f3d4d89282fa5ed088da7785e82645ea..8c236a6020e92adda1d8f7b627aff8473fd212cd 100644 (file)
@@ -332,6 +332,10 @@ sub ElementLevel($$$$$$$)
                        } else {
                                warn("Unable to handle string with flags $e->{PROPERTIES}->{flag}");
                        }
+               } elsif ($l->{DATA_TYPE} eq "DATA_BLOB") {
+                       my $remain = 0;
+                       $remain = 1 if (property_matches($e->{ORIGINAL}, "flag", ".*LIBNDR_FLAG_REMAINING.*"));
+                       $self->pidl_code("offset = dissect_ndr_datablob(tvb, offset, pinfo, tree, drep, $hf, $remain);");
                } else {
                        my $call;