2 * Routines for AIM Instant Messenger (OSCAR) dissection
3 * Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
5 * $Id: packet-aim-chatnav.c,v 1.3 2004/03/24 06:36:32 ulfl Exp $
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@ethereal.com>
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 #include <epan/packet.h>
38 #include <epan/strutil.h>
40 #include "packet-aim.h"
42 #define FAMILY_CHAT_NAV 0x000D
44 /* Family Chat Navigation */
45 #define FAMILY_CHATNAV_ERROR 0x0001
46 #define FAMILY_CHATNAV_LIMITS_REQ 0x0002
47 #define FAMILY_CHATNAV_EXCHANGE_REQ 0x0003
48 #define FAMILY_CHATNAV_ROOM_INFO_REQ 0x0004
49 #define FAMILY_CHATNAV_ROOMIF_EXT_REQ 0x0005
50 #define FAMILY_CHATNAV_MEMBERLIST_REQ 0x0006
51 #define FAMILY_CHATNAV_SEARCH_ROOM 0x0007
52 #define FAMILY_CHATNAV_CREATE_ROOM 0x0008
53 #define FAMILY_CHATNAV_INFO_REPLY 0x0009
54 #define FAMILY_CHATNAV_DEFAULT 0xffff
56 static const value_string aim_fnac_family_chatnav[] = {
57 { FAMILY_CHATNAV_ERROR, "Error" },
58 { FAMILY_CHATNAV_LIMITS_REQ, "Request Limits" },
59 { FAMILY_CHATNAV_EXCHANGE_REQ, "Request Exchange" },
60 { FAMILY_CHATNAV_ROOM_INFO_REQ, "Request Room Information" },
61 { FAMILY_CHATNAV_ROOMIF_EXT_REQ, "Request Extended Room Information" },
62 { FAMILY_CHATNAV_MEMBERLIST_REQ, "Request Member List" },
63 { FAMILY_CHATNAV_SEARCH_ROOM, "Search Room" },
64 { FAMILY_CHATNAV_CREATE_ROOM, "Create" },
65 { FAMILY_CHATNAV_INFO_REPLY, "Info" },
66 { FAMILY_CHATNAV_DEFAULT, "ChatNav Default" },
70 /* Initialize the protocol and registered fields */
71 static int proto_aim_chatnav = -1;
73 int ett_aim_chatnav = -1;
75 /* Register the protocol with Ethereal */
77 proto_register_aim_chatnav(void)
80 /* Setup list of header fields */
82 static hf_register_info hf[] = {
85 /* Setup protocol subtree array */
86 static gint *ett[] = {
89 /* Register the protocol name and description */
90 proto_aim_chatnav = proto_register_protocol("AIM Chat Navigation", "AIM ChatNav", "aim_chatnav");
92 /* Required function calls to register the header fields and subtrees used */
94 proto_register_field_array(proto_aim_chatnav, hf, array_length(hf));*/
95 proto_register_subtree_array(ett, array_length(ett));
99 proto_reg_handoff_aim_chatnav(void)
101 /*dissector_handle_t aim_handle;*/
104 * aim_handle = new_create_dissector_handle(dissect_aim_chatnav, proto_aim_chatnav);
105 * dissector_add("aim.family", FAMILY_CHAT_NAV, aim_handle);
107 aim_init_family(FAMILY_CHAT_NAV, "Chat Navigation", aim_fnac_family_chatnav);