diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-12-03 04:00:26 +0000 |
commit | bced8711f67b5dba76e9d6cdfd1a0246b235df27 (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-x25.c | |
parent | 8d0ea8bc932de5cf57183a593be160515af064d9 (diff) |
Make "dissector_add()", "dissector_delete()", and "dissector_change()"
take a dissector handle as an argument, rather than a pointer to a
dissector function and a protocol ID. Associate dissector handles with
dissector table entries.
svn path=/trunk/; revision=4308
Diffstat (limited to 'packet-x25.c')
-rw-r--r-- | packet-x25.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-x25.c b/packet-x25.c index 9dbc744502..f7f4fcce54 100644 --- a/packet-x25.c +++ b/packet-x25.c @@ -2,7 +2,7 @@ * Routines for x25 packet disassembly * Olivier Abad <oabad@cybercable.fr> * - * $Id: packet-x25.c,v 1.57 2001/12/02 00:38:53 guy Exp $ + * $Id: packet-x25.c,v 1.58 2001/12/03 03:59:43 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2279,6 +2279,8 @@ proto_register_x25(void) void proto_reg_handoff_x25(void) { + dissector_handle_t x25_handle; + /* * Get handles for various dissectors. */ @@ -2287,5 +2289,6 @@ proto_reg_handoff_x25(void) qllc_handle = find_dissector("qllc"); data_handle = find_dissector("data"); - dissector_add("llc.dsap", SAP_X25, dissect_x25, proto_x25); + x25_handle = find_dissector("x.25"); + dissector_add("llc.dsap", SAP_X25, x25_handle); } |