The Samba-Bugzilla – Attachment 7560 Details for
Bug 8942
proto_tree_add_item() calls should use ENC_ values rather than TRUE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to use ENC_ values for proto_tree_add_item() calls
patch (text/plain), 1014 bytes, created by
Guy Harris
on 2012-05-15 01:39:11 UTC
(
hide
)
Description:
Patch to use ENC_ values for proto_tree_add_item() calls
Filename:
MIME Type:
Creator:
Guy Harris
Created:
2012-05-15 01:39:11 UTC
Size:
1014 bytes
patch
obsolete
>--- /Users/gharris/src/cmd/samba/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2012-05-07 12:10:23.000000000 -0700 >+++ ./NDR.pm 2012-05-14 18:22:49.000000000 -0700 >@@ -215,7 +215,7 @@ > > $self->pidl_code("if (parent_tree) {"); > $self->indent; >- $self->pidl_code("item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, $e->{ALIGN}, TRUE);"); >+ $self->pidl_code("item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, $e->{ALIGN}, DREP_ENC_INTEGER(drep));"); > $self->pidl_code("tree = proto_item_add_subtree(item,ett_$ifname\_$name);"); > $self->deindent; > $self->pidl_code("}\n"); >@@ -648,7 +648,7 @@ > $self->pidl_code(""); > $self->pidl_code("if (parent_tree) {"); > $self->indent; >- $self->pidl_code("item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE);"); >+ $self->pidl_code("item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);"); > $self->pidl_code("tree = proto_item_add_subtree(item, ett_$ifname\_$name);"); > $self->deindent; > $self->pidl_code("}");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8942
: 7560