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-ftp.c | |
parent | 8d0ea8bc932de5cf57183a593be160515af064d9 (diff) | |
download | wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.gz wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.tar.bz2 wireshark-bced8711f67b5dba76e9d6cdfd1a0246b235df27.zip |
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-ftp.c')
-rw-r--r-- | packet-ftp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packet-ftp.c b/packet-ftp.c index d80ed89a8d..f41d8afac1 100644 --- a/packet-ftp.c +++ b/packet-ftp.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * Copyright 2001, Juan Toledo <toledo@users.sourceforge.net> (Passive FTP) * - * $Id: packet-ftp.c,v 1.37 2001/11/27 07:13:25 guy Exp $ + * $Id: packet-ftp.c,v 1.38 2001/12/03 03:59:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -441,6 +441,10 @@ proto_register_ftp(void) void proto_reg_handoff_ftp(void) { - dissector_add("tcp.port", TCP_PORT_FTPDATA, &dissect_ftpdata, proto_ftp_data); - dissector_add("tcp.port", TCP_PORT_FTP, &dissect_ftp, proto_ftp); + dissector_handle_t ftpdata_handle, ftp_handle; + + ftpdata_handle = create_dissector_handle(dissect_ftpdata, proto_ftp_data); + dissector_add("tcp.port", TCP_PORT_FTPDATA, ftpdata_handle); + ftp_handle = create_dissector_handle(dissect_ftp, proto_ftp); + dissector_add("tcp.port", TCP_PORT_FTP, ftp_handle); } |