/* packet-atalk.c
* Routines for Appletalk packet disassembly (DDP, currently).
*
- * $Id: packet-atalk.c,v 1.55 2001/06/18 02:17:44 guy Exp $
+ * $Id: packet-atalk.c,v 1.56 2001/11/26 01:03:35 hagbard Exp $
*
* Simon Wilkinson <sxw@dcs.ed.ac.uk>
*
static dissector_table_t ddp_dissector_table;
+static dissector_handle_t data_handle;
+
/*
* P = Padding, H = Hops, L = Len
*
new_tvb = tvb_new_subset(tvb, DDP_HEADER_SIZE, -1, -1);
if (!dissector_try_port(ddp_dissector_table, ddp.type, new_tvb, pinfo, tree))
- dissect_data(new_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,new_tvb, pinfo, tree);
}
void
dissector_add("ddp.type", DDP_NBP, dissect_nbp, proto_nbp);
dissector_add("ddp.type", DDP_RTMPREQ, dissect_rtmp_request, proto_rtmp);
dissector_add("ddp.type", DDP_RTMPDATA, dissect_rtmp_data, proto_rtmp);
+ data_handle = find_dissector("data");
}
/* packet-atm.c
* Routines for ATM packet disassembly
*
- * $Id: packet-atm.c,v 1.36 2001/06/18 02:17:44 guy Exp $
+ * $Id: packet-atm.c,v 1.37 2001/11/26 01:03:35 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
static dissector_handle_t sscop_handle;
static dissector_handle_t lane_handle;
static dissector_handle_t ilmi_handle;
+static dissector_handle_t data_handle;
/*
* See
default:
/* Dump it as raw data. */
next_tvb = tvb_new_subset(tvb, 0, -1, -1);
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
break;
}
}
default:
if (tree) {
/* Dump it as raw data. */
- dissect_data(tvb, 0, pinfo, tree);
+ call_dissector(data_handle,tvb, pinfo, tree);
break;
}
}
default:
if (tree) {
/* Dump it as raw data. (Is this a single cell?) */
- dissect_data(tvb, 0, pinfo, tree);
+ call_dissector(data_handle,tvb, pinfo, tree);
}
break;
}
sscop_handle = find_dissector("sscop");
lane_handle = find_dissector("lane");
ilmi_handle = find_dissector("ilmi");
+ data_handle = find_dissector("data");
dissector_add("wtap_encap", WTAP_ENCAP_ATM_SNIFFER, dissect_atm,
proto_atm);
* Routines for BACnet (APDU) dissection
* Copyright 2001, Hartmut Mueller <hartmut@abmlinux.org>, FH Dortmund
*
- * $Id: packet-bacapp.c,v 1.4 2001/06/18 02:17:44 guy Exp $
+ * $Id: packet-bacapp.c,v 1.5 2001/11/26 01:03:35 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
static gint ett_bacapp = -1;
+static dissector_handle_t data_handle;
+
static void
dissect_bacapp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
}
next_tvb = tvb_new_subset(tvb,offset,-1,-1);
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
}
proto_reg_handoff_bacapp(void)
{
dissector_add("bacnet_control_net", 0, dissect_bacapp, proto_bacapp);
+ data_handle = find_dissector("data");
}
* Routines for BACnet/IP (BVLL, BVLC) dissection
* Copyright 2001, Hartmut Mueller <hartmut@abmlinux.org>, FH Dortmund
*
- * $Id: packet-bvlc.c,v 1.4 2001/06/18 02:17:45 guy Exp $
+ * $Id: packet-bvlc.c,v 1.5 2001/11/26 01:03:35 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
static int hf_bvlc_fwd_ip = -1;
static int hf_bvlc_fwd_port = -1;
-
+static dissector_handle_t data_handle;
static dissector_table_t bvlc_dissector_table;
if (!dissector_try_port(bvlc_dissector_table,
bvlc_function, next_tvb, pinfo, tree)) {
/* Unknown function - dissect the paylod as data */
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
}
}
proto_reg_handoff_bvlc(void)
{
dissector_add("udp.port", 0xBAC0, dissect_bvlc, proto_bvlc); /* added proto_bvlc */
+ data_handle = find_dissector("data");
}
/* Taken from add-135a (BACnet-IP-standard paper):
*
*
* Laurent Deniel <deniel@worldnet.fr>
*
- * $Id: packet-fddi.c,v 1.52 2001/11/20 21:59:12 guy Exp $
+ * $Id: packet-fddi.c,v 1.53 2001/11/26 01:03:35 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#define FDDI_P_SHOST 7
static dissector_handle_t llc_handle;
+static dissector_handle_t data_handle;
static void
swap_mac_addr(u_char *swapped_addr, const u_char *orig_addr)
return;
default :
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
return;
} /* fc */
* Get a handle for the LLC dissector.
*/
llc_handle = find_dissector("llc");
+ data_handle = find_dissector("data");
dissector_add("wtap_encap", WTAP_ENCAP_FDDI,
dissect_fddi_not_bitswapped, proto_fddi);
*
* Copyright 2001, Paul Ionescu <paul@acorp.ro>
*
- * $Id: packet-fr.c,v 1.18 2001/06/18 02:17:46 guy Exp $
+ * $Id: packet-fr.c,v 1.19 2001/11/26 01:03:35 hagbard Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
static gint hf_fr_snaptype = -1;
static gint hf_fr_chdlctype = -1;
+static dissector_handle_t data_handle;
+
static const true_false_string cmd_string = {
"Command",
"Response"
next_tvb = tvb_new_subset(tvb,offset,-1,-1);
if (!dissector_try_port(fr_subdissector_table,fr_nlpid,
next_tvb, pinfo, tree))
- dissect_data(next_tvb, 0, pinfo, tree);
+ call_dissector(data_handle,next_tvb, pinfo, tree);
break;
}
}
static void dissect_lapf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree_add_text(tree, tvb, 0, 0, "Frame relay lapf not yet implemented");
- dissect_data(tvb_new_subset(tvb,0,-1,-1),0,pinfo,tree);
+ call_dissector(data_handle,tvb_new_subset(tvb,0,-1,-1),pinfo,tree);
}
static void dissect_fr_xid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree_add_text(tree, tvb, 0, 0, "Frame relay xid not yet implemented");
- dissect_data(tvb_new_subset(tvb,0,-1,-1),0,pinfo,tree);
+ call_dissector(data_handle,tvb_new_subset(tvb,0,-1,-1),pinfo,tree);
}
/* Register the protocol with Ethereal */
{
dissector_add("wtap_encap", WTAP_ENCAP_FRELAY, dissect_fr, proto_fr);
dissector_add("gre.proto", GRE_FR, dissect_fr, proto_fr);
+ data_handle = find_dissector("data");
}