diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-21 08:01:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-21 08:01:29 +0000 |
commit | a78e66cfbb93402071031337c5ee5972827a39fb (patch) | |
tree | b1fa0013f96edec2436ff6962ce8eef4053910b5 /epan/dissectors/packet-aim-email.c | |
parent | 2a33a6e285e2e035b5f469efc69b6bf2ed06ecde (diff) |
From Jelmer Vernooij:
Remove some code duplication from the Oscar dissector (reduces
the number of lines by 500) by providing a custom registration
function for oscar families (aim_init_family). This also fixes
a number of issues with column names.
Add minor updates such as adding support for the Capability Info
TLV on users.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12060 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-aim-email.c')
-rw-r--r-- | epan/dissectors/packet-aim-email.c | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/epan/dissectors/packet-aim-email.c b/epan/dissectors/packet-aim-email.c index 2c8acec84d..dc1287e2cd 100644 --- a/epan/dissectors/packet-aim-email.c +++ b/epan/dissectors/packet-aim-email.c @@ -41,40 +41,19 @@ #define FAMILY_EMAIL 0x0018 -/* Family Advertising */ -#define FAMILY_EMAIL_STATUS_REQ 0x0006 -#define FAMILY_EMAIL_STATUS_REPL 0x0007 -#define FAMILY_EMAIL_ACTIVATE 0x0016 - -static const value_string aim_fnac_family_email[] = { - { FAMILY_EMAIL_STATUS_REQ, "Email Status Request" }, - { FAMILY_EMAIL_STATUS_REPL, "Email Status Reply" }, - { FAMILY_EMAIL_ACTIVATE, "Activate Email" }, - { 0, NULL } +static const aim_subtype aim_fnac_family_email[] = { + { 0x0006, "Email Status Request", NULL }, + { 0x0007, "Email Status Reply", NULL }, + { 0x0016, "Activate Email", NULL }, + { 0, NULL, NULL } }; - /* Initialize the protocol and registered fields */ static int proto_aim_email = -1; /* Initialize the subtree pointers */ static gint ett_aim_email = -1; -static int dissect_aim_email(tvbuff_t *tvb _U_, - packet_info *pinfo _U_, - proto_tree *tree _U_) -{ - struct aiminfo *aiminfo = pinfo->private_data; - - switch(aiminfo->subtype) { - default: - /* FIXME */ - return 0; - } - - return 0; -} - /* Register the protocol with Ethereal */ void proto_register_aim_email(void) @@ -102,8 +81,5 @@ proto_register_aim_email(void) void proto_reg_handoff_aim_email(void) { - dissector_handle_t aim_handle; - aim_handle = new_create_dissector_handle(dissect_aim_email, proto_aim_email); - dissector_add("aim.family", FAMILY_EMAIL, aim_handle); - aim_init_family(FAMILY_EMAIL, "E-mail", aim_fnac_family_email); + aim_init_family(proto_aim_email, ett_aim_email, FAMILY_EMAIL, aim_fnac_family_email); } |