diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-12-03 04:00:26 +0000 |
commit | b6afcc102f8ba453034eda35648ff746ed329f4a (patch) | |
tree | 6303e298a7b136a1e1da306950398c99e3e71432 /packet-sua.c | |
parent | cc6c7a4721cbfeee3556dacd8f019d9cc78ef293 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sua.c')
-rw-r--r-- | packet-sua.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packet-sua.c b/packet-sua.c index 392a458088..a1ba464030 100644 --- a/packet-sua.c +++ b/packet-sua.c @@ -4,9 +4,9 @@ * http://www.ietf.org/internet-drafts/draft-ietf-sigtran-sua-08.txt * and also supports SUA light, a trivial Siemens proprietary version. * - * Copyright 2001, Michael TŸxen <Michael.Tuexen@icn.siemens.de> + * Copyright 2000, Michael Tüxen <Michael.Tuexen@icn.siemens.de> * - * $Id: packet-sua.c,v 1.1 2001/11/04 22:19:23 guy Exp $ + * $Id: packet-sua.c,v 1.2 2001/12/03 03:59:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2757,6 +2757,9 @@ proto_register_sua(void) void proto_reg_handoff_sua(void) { - dissector_add("sctp.ppi", SUA_PAYLOAD_PROTO_ID, dissect_sua, proto_sua); - dissector_add("sctp.port", SCTP_PORT_SUA, dissect_sua, proto_sua); + dissector_handle_t sua_handle; + + sua_handle = create_dissector_handle(dissect_sua, proto_sua); + dissector_add("sctp.ppi", SUA_PAYLOAD_PROTO_ID, sua_handle); + dissector_add("sctp.port", SCTP_PORT_SUA, sua_handle); } |