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-fr.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-fr.c')
-rw-r--r-- | packet-fr.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packet-fr.c b/packet-fr.c index f23af06862..5bb4c5ed4c 100644 --- a/packet-fr.c +++ b/packet-fr.c @@ -3,7 +3,7 @@ * * Copyright 2001, Paul Ionescu <paul@acorp.ro> * - * $Id: packet-fr.c,v 1.24 2001/12/02 00:07:46 guy Exp $ + * $Id: packet-fr.c,v 1.25 2001/12/03 03:59:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -423,7 +423,10 @@ void proto_register_fr(void) void proto_reg_handoff_fr(void) { - dissector_add("wtap_encap", WTAP_ENCAP_FRELAY, dissect_fr, proto_fr); - dissector_add("gre.proto", GRE_FR, dissect_fr, proto_fr); + dissector_handle_t fr_handle; + + fr_handle = create_dissector_handle(dissect_fr, proto_fr); + dissector_add("wtap_encap", WTAP_ENCAP_FRELAY, fr_handle); + dissector_add("gre.proto", GRE_FR, fr_handle); data_handle = find_dissector("data"); } |