MSWSP: fix dissect_mswsp_smb()
[wireshark-wip.git] / epan / dissectors / packet-aim-oft.c
blob5706d60f47dbe599c406ddc28947bcdf5bc83e0b
1 /* packet-aim.c
2 * Routines for AIM Instant Messenger (OSCAR) dissection
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>
31 #include <epan/strutil.h>
33 #include "packet-aim.h"
35 void proto_register_aim_oft(void);
36 void proto_reg_handoff_aim_oft(void);
38 /* SNAC families */
39 #define FAMILY_OFT 0xfffe
41 static int proto_aim_oft = -1;
43 /*static int ett_aim_recvfile = -1;
44 static int ett_aim_sendfile = -1;*/
47 * cookie (8 chars)
48 * encrypt (uint16)
49 * compress (uint16)
50 * totfiles (uint16)
51 * filesleft (uint16)
52 * totparts (uint16)
53 * partsleft (uint16)
54 * totsize (uint32)
55 * size (uint32)
56 * modtime (uint32)
57 * checksum (uint32)
58 * rfrcsum (uint32)
59 * rfsize (uint32)
60 * cretime (uint32)
61 * rfcsum (uint32)
62 * nrecvd (uint32)
63 * recvscum (uint32)
64 * idstring (32 chars)
65 * flags (uint8)
66 * lnameoffset (uint8)
67 * lsizeoffset (uint8)
68 * unknown (69 chars)
69 * macfileinfo (16 chars)
70 * nencode (uint16)
71 * nlanguage (uint16)
72 * filename (raw, 64 chars)
74 * length of file (uint16)
75 * file data
79 /* Register the protocol with Wireshark */
80 void
81 proto_register_aim_oft(void)
84 /* Setup list of header fields */
85 /* static hf_register_info hf[] = {
86 };*/
88 /* Setup protocol subtree array */
89 /* static gint *ett[] = {
90 };*/
92 /* Register the protocol name and description */
93 proto_aim_oft = proto_register_protocol("AIM OFT", "AIM OFT", "aim_oft");
95 /* Required function calls to register the header fields and subtrees used */
96 /* proto_register_field_array(proto_aim_oft, hf, array_length(hf));*/
97 /* proto_register_subtree_array(ett, array_length(ett));*/
100 void
101 proto_reg_handoff_aim_oft(void)
103 /* dissector_handle_t aim_handle;*/
105 /* FIXME
106 aim_handle = new_create_dissector_handle(dissect_aim, proto_aim);
107 dissector_add_uint("tcp.port", TCP_PORT_AIM, aim_handle);*/