diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-21 02:10:19 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-21 02:10:19 +0000 |
commit | 794757ae8fbee85db2b24bc46b7e9cc492de01df (patch) | |
tree | a955184a13d8444bdec0de9200f261c46cfa2734 /asn1/pcap | |
parent | 449d732485da5a19b8a0d3ddef49ed30498712ff (diff) |
For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
Also: remove trailing whitespace for a number of files.
svn path=/trunk/; revision=39503
Diffstat (limited to 'asn1/pcap')
-rw-r--r-- | asn1/pcap/packet-pcap-template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asn1/pcap/packet-pcap-template.c b/asn1/pcap/packet-pcap-template.c index 791558c49c..ffa5342115 100644 --- a/asn1/pcap/packet-pcap-template.c +++ b/asn1/pcap/packet-pcap-template.c @@ -135,9 +135,9 @@ dissect_pcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "PCAP"); /* create the pcap protocol tree */ - pcap_item = proto_tree_add_item(tree, proto_pcap, tvb, 0, -1, FALSE); + pcap_item = proto_tree_add_item(tree, proto_pcap, tvb, 0, -1, ENC_NA); pcap_tree = proto_item_add_subtree(pcap_item, ett_pcap); - + dissect_PCAP_PDU_PDU(tvb, pinfo, pcap_tree); } @@ -201,7 +201,7 @@ void proto_register_pcap(void) { proto_register_subtree_array(ett, array_length(ett)); pcap_module = prefs_register_protocol(proto_pcap, proto_reg_handoff_pcap); - + /* Register dissector */ register_dissector("pcap", dissect_pcap, proto_pcap); |