aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pcli/packet-pcli.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-10 20:36:37 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-10 20:36:37 +0000
commit9cefef1869e14aa739f2fde840208121e391d150 (patch)
treee1364eb60df4247b215a481921a6e0ce9850e99e /plugins/pcli/packet-pcli.c
parentb1241274d309aa8d78903d243def227c3b4ac24e (diff)
downloadwireshark-9cefef1869e14aa739f2fde840208121e391d150.tar.gz
wireshark-9cefef1869e14aa739f2fde840208121e391d150.tar.bz2
wireshark-9cefef1869e14aa739f2fde840208121e391d150.zip
As we are (correctly) calling the IP dissector regardless of whether a
protocol tree is being built or not, we must also construct a tvbuff to hand to that dissector regardless of whether a protocol tree is being built or not. svn path=/trunk/; revision=6402
Diffstat (limited to 'plugins/pcli/packet-pcli.c')
-rw-r--r--plugins/pcli/packet-pcli.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/pcli/packet-pcli.c b/plugins/pcli/packet-pcli.c
index 31ba6c437c..cf89a40840 100644
--- a/plugins/pcli/packet-pcli.c
+++ b/plugins/pcli/packet-pcli.c
@@ -1,7 +1,7 @@
/* packet-pcli.c
* Routines for Packet Cable Lawful Intercept packet disassembly
*
- * $Id: packet-pcli.c,v 1.3 2002/10/10 19:06:04 hagbard Exp $
+ * $Id: packet-pcli.c,v 1.4 2002/10/10 20:36:37 guy Exp $
*
* Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
*
@@ -105,16 +105,19 @@ dissect_pcli(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/*
*If we have a non-null tree (ie we are building the proto_tree
* instead of just filling out the columns ), then add a PLCI
- * tree node and put a CCCID header element under it. Then hand
- * of to the IP dissector.
+ * tree node and put a CCCID header element under it.
*/
if(tree) {
ti = proto_tree_add_item(tree,proto_pcli,tvb,0,0,FALSE);
pcli_tree = proto_item_add_subtree(ti,ett_pcli);
proto_tree_add_uint(pcli_tree,hf_pcli_cccid,tvb,
0,4,cccid);
- next_tvb = tvb_new_subset(tvb,4,-1,-1);
}
+
+ /*
+ * Hand off to the IP dissector.
+ */
+ next_tvb = tvb_new_subset(tvb,4,-1,-1);
call_dissector(ip_handle,next_tvb,pinfo,tree);
}