2010-10-07 21:23:36 +00:00
|
|
|
/* packet-aim.h
|
2004-03-23 06:21:18 +00:00
|
|
|
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-03-23 06:21:18 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-03-23 06:21:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PACKET_AIM_H__
|
|
|
|
#define __PACKET_AIM_H__
|
|
|
|
|
|
|
|
typedef struct _aim_tlv {
|
|
|
|
guint16 valueid;
|
2005-07-26 08:01:16 +00:00
|
|
|
const char *desc;
|
2004-09-23 17:40:36 +00:00
|
|
|
int (*dissector) (proto_item *ti, guint16 value_id, tvbuff_t *tvb, packet_info *);
|
2004-03-23 06:21:18 +00:00
|
|
|
} aim_tlv;
|
|
|
|
|
2004-09-21 08:01:29 +00:00
|
|
|
typedef struct _aim_subtype {
|
|
|
|
guint16 id;
|
2005-07-26 08:01:16 +00:00
|
|
|
const char *name;
|
2004-09-21 08:01:29 +00:00
|
|
|
int (*dissector) (tvbuff_t *, packet_info *, proto_tree *);
|
|
|
|
} aim_subtype;
|
|
|
|
|
|
|
|
typedef struct _aim_family {
|
|
|
|
int ett;
|
|
|
|
int proto_id;
|
|
|
|
protocol_t *proto;
|
|
|
|
guint16 family;
|
2005-07-24 19:01:28 +00:00
|
|
|
const char *name;
|
2004-09-21 08:01:29 +00:00
|
|
|
const aim_subtype *subtypes;
|
|
|
|
} aim_family;
|
|
|
|
|
|
|
|
void aim_init_family(int proto, int ett, guint16 family, const aim_subtype *subtypes);
|
2004-03-23 06:21:18 +00:00
|
|
|
|
2004-04-20 04:48:32 +00:00
|
|
|
int dissect_aim_buddyname(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *tree);
|
2004-03-23 06:21:18 +00:00
|
|
|
void aim_get_message( guchar *msg, tvbuff_t *tvb, int msg_offset, int msg_length);
|
2014-04-09 08:04:37 +00:00
|
|
|
int aim_get_buddyname( guint8 **name, tvbuff_t *tvb, int offset);
|
2004-04-26 18:21:10 +00:00
|
|
|
int dissect_aim_userinfo(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *tree);
|
2004-03-23 06:21:18 +00:00
|
|
|
|
2008-05-23 19:07:46 +00:00
|
|
|
int dissect_aim_snac_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aim_tree);
|
|
|
|
|
|
|
|
int dissect_aim_ssi_result(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aim_tree);
|
2004-03-23 06:21:18 +00:00
|
|
|
|
2004-04-26 18:21:10 +00:00
|
|
|
int dissect_aim_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, proto_tree *tree, const aim_tlv *);
|
|
|
|
int dissect_aim_tlv_list(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, proto_tree *tree, const aim_tlv *);
|
2004-09-22 08:04:40 +00:00
|
|
|
int dissect_aim_tlv_sequence(tvbuff_t *tvb, packet_info *pinfo _U_, int offset, proto_tree *tree, const aim_tlv *);
|
2004-03-23 06:21:18 +00:00
|
|
|
|
2004-09-21 08:01:29 +00:00
|
|
|
const aim_family *aim_get_family( guint16 family );
|
|
|
|
const aim_subtype *aim_get_subtype( guint16 family, guint16 subtype);
|
2004-03-23 06:21:18 +00:00
|
|
|
|
2004-09-23 17:40:36 +00:00
|
|
|
int dissect_aim_tlv_value_string(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
2008-11-20 07:02:34 +00:00
|
|
|
int dissect_aim_tlv_value_string08_array(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
2004-09-23 17:40:36 +00:00
|
|
|
int dissect_aim_tlv_value_uint8(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_uint16(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_uint32(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_bytes(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_ipv4(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_time(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_client_capabilities(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_capability(proto_tree *entry, tvbuff_t *tvb, int offset);
|
2004-05-05 09:30:56 +00:00
|
|
|
int dissect_aim_userclass(tvbuff_t *tvb, int offset, int len, proto_item *ti, guint32 flags);
|
2004-09-23 17:40:36 +00:00
|
|
|
int dissect_aim_tlv_value_userclass(proto_item *ti, guint16, tvbuff_t *, packet_info *);
|
|
|
|
int dissect_aim_tlv_value_messageblock (proto_item *ti, guint16 valueid _U_, tvbuff_t *tvb, packet_info *);
|
2004-04-26 18:21:10 +00:00
|
|
|
|
2010-10-07 21:23:36 +00:00
|
|
|
extern const aim_tlv aim_client_tlvs[];
|
|
|
|
extern const aim_tlv aim_onlinebuddy_tlvs[];
|
|
|
|
extern const aim_tlv aim_motd_tlvs[];
|
2004-03-23 06:21:18 +00:00
|
|
|
|
|
|
|
#endif
|