2 * Definitions for packet disassembly structures and routines
4 * $Id: packet-yhoo.h,v 1.4 1999/10/20 16:36:08 gram Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * Copyright 1998 Gerald Combs
9 * Joerg Mayer <jmayer@telemation.de>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 /* This is from yahoolib.h from gtkyahoo */
32 /* Service constants */
33 #define YAHOO_SERVICE_LOGON 1
34 #define YAHOO_SERVICE_LOGOFF 2
35 #define YAHOO_SERVICE_ISAWAY 3
36 #define YAHOO_SERVICE_ISBACK 4
37 #define YAHOO_SERVICE_IDLE 5
38 #define YAHOO_SERVICE_MESSAGE 6
39 #define YAHOO_SERVICE_IDACT 7
40 #define YAHOO_SERVICE_IDDEACT 8
41 #define YAHOO_SERVICE_MAILSTAT 9
42 #define YAHOO_SERVICE_USERSTAT 10
43 #define YAHOO_SERVICE_NEWMAIL 11
44 #define YAHOO_SERVICE_CHATINVITE 12
45 #define YAHOO_SERVICE_CALENDAR 13
46 #define YAHOO_SERVICE_NEWPERSONALMAIL 14
47 #define YAHOO_SERVICE_NEWCONTACT 15
48 #define YAHOO_SERVICE_ADDIDENT 16
49 #define YAHOO_SERVICE_ADDIGNORE 17
50 #define YAHOO_SERVICE_PING 18
51 #define YAHOO_SERVICE_GROUPRENAME 19
52 #define YAHOO_SERVICE_SYSMESSAGE 20
53 #define YAHOO_SERVICE_PASSTHROUGH2 22
54 #define YAHOO_SERVICE_CONFINVITE 24
55 #define YAHOO_SERVICE_CONFLOGON 25
56 #define YAHOO_SERVICE_CONFDECLINE 26
57 #define YAHOO_SERVICE_CONFLOGOFF 27
58 #define YAHOO_SERVICE_CONFADDINVITE 28
59 #define YAHOO_SERVICE_CONFMSG 29
60 #define YAHOO_SERVICE_CHATLOGON 30
61 #define YAHOO_SERVICE_CHATLOGOFF 31
62 #define YAHOO_SERVICE_CHATMSG 32
63 #define YAHOO_SERVICE_FILETRANSFER 70
66 #define YAHOO_MSGTYPE_NONE 0
67 #define YAHOO_MSGTYPE_NORMAL 1
68 #define YAHOO_MSGTYPE_BOUNCE 2
69 #define YAHOO_MSGTYPE_STATUS 4
70 #define YAHOO_MSGTYPE_OFFLINE 1515563606 /* yuck! */
72 struct yahoo_rawpacket
74 char version[8]; /* 7 chars and trailing null */
75 unsigned char len[4]; /* length - little endian */
76 unsigned char service[4]; /* service - little endian */
77 unsigned char connection_id[4]; /* connection number - little endian */
78 unsigned char magic_id[4]; /* magic number used for http session */
79 unsigned char unknown1[4];
80 unsigned char msgtype[4];
83 char content[1]; /* was zero, had problems with aix xlc */