MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-aim-stats.c
blob8ab513f1ee6596649cf9d10ae98170154f94b3e2
1 /* packet-aim-stats.c
2 * Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Stats
3 * Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
5 * $Id$
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 #include "config.h"
28 #include <glib.h>
30 #include <epan/packet.h>
32 #include "packet-aim.h"
34 void proto_register_aim_stats(void);
35 void proto_reg_handoff_aim_stats(void);
37 #define FAMILY_STATS 0x000B
39 /* Initialize the protocol and registered fields */
40 static int proto_aim_stats = -1;
42 /* Initialize the subtree pointers */
43 static gint ett_aim_stats = -1;
45 static const aim_subtype aim_fnac_family_stats[] = {
46 { 0x0001, "Error", dissect_aim_snac_error },
47 { 0x0002, "Set Report Interval", NULL },
48 { 0x0003, "Report Request", NULL },
49 { 0x0004, "Report Ack", NULL },
50 { 0, NULL, NULL }
54 /* Register the protocol with Wireshark */
55 void
56 proto_register_aim_stats(void)
59 /* Setup list of header fields */
60 /*FIXME
61 static hf_register_info hf[] = {
62 };*/
64 /* Setup protocol subtree array */
65 static gint *ett[] = {
66 &ett_aim_stats,
69 /* Register the protocol name and description */
70 proto_aim_stats = proto_register_protocol("AIM Statistics", "AIM Stats", "aim_stats");
72 /* Required function calls to register the header fields and subtrees used */
73 /*FIXME
74 proto_register_field_array(proto_aim_stats, hf, array_length(hf));*/
75 proto_register_subtree_array(ett, array_length(ett));
78 void
79 proto_reg_handoff_aim_stats(void)
81 aim_init_family(proto_aim_stats, ett_aim_stats, FAMILY_STATS, aim_fnac_family_stats);