git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba882bf
)
pidl: handle datablob for wireshark generator
author
Matthieu Patou
<mat@matws.net>
Tue, 2 Aug 2011 18:42:44 +0000
(22:42 +0400)
committer
Matthieu Patou
<mat@matws.net>
Fri, 5 Aug 2011 21:33:06 +0000
(
01:33
+0400)
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 7c10a535f3d4d89282fa5ed088da7785e82645ea..8c236a6020e92adda1d8f7b627aff8473fd212cd 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/
pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@
-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;