2 * Definitions for packet disassembly structures and routines
4 * $Id: packet-yhoo.h,v 1.7 2001/04/17 00:46:04 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@zing.org>
8 * 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.
26 /* This is from yahoolib.h from gtkyahoo */
31 /* Service constants */
32 #define YAHOO_SERVICE_LOGON 1
33 #define YAHOO_SERVICE_LOGOFF 2
34 #define YAHOO_SERVICE_ISAWAY 3
35 #define YAHOO_SERVICE_ISBACK 4
36 #define YAHOO_SERVICE_IDLE 5
37 #define YAHOO_SERVICE_MESSAGE 6
38 #define YAHOO_SERVICE_IDACT 7
39 #define YAHOO_SERVICE_IDDEACT 8
40 #define YAHOO_SERVICE_MAILSTAT 9
41 #define YAHOO_SERVICE_USERSTAT 10
42 #define YAHOO_SERVICE_NEWMAIL 11
43 #define YAHOO_SERVICE_CHATINVITE 12
44 #define YAHOO_SERVICE_CALENDAR 13
45 #define YAHOO_SERVICE_NEWPERSONALMAIL 14
46 #define YAHOO_SERVICE_NEWCONTACT 15
47 #define YAHOO_SERVICE_ADDIDENT 16
48 #define YAHOO_SERVICE_ADDIGNORE 17
49 #define YAHOO_SERVICE_PING 18
50 #define YAHOO_SERVICE_GROUPRENAME 19
51 #define YAHOO_SERVICE_SYSMESSAGE 20
52 #define YAHOO_SERVICE_PASSTHROUGH2 22
53 #define YAHOO_SERVICE_CONFINVITE 24
54 #define YAHOO_SERVICE_CONFLOGON 25
55 #define YAHOO_SERVICE_CONFDECLINE 26
56 #define YAHOO_SERVICE_CONFLOGOFF 27
57 #define YAHOO_SERVICE_CONFADDINVITE 28
58 #define YAHOO_SERVICE_CONFMSG 29
59 #define YAHOO_SERVICE_CHATLOGON 30
60 #define YAHOO_SERVICE_CHATLOGOFF 31
61 #define YAHOO_SERVICE_CHATMSG 32
62 #define YAHOO_SERVICE_FILETRANSFER 70
65 #define YAHOO_MSGTYPE_NONE 0
66 #define YAHOO_MSGTYPE_NORMAL 1
67 #define YAHOO_MSGTYPE_BOUNCE 2
68 #define YAHOO_MSGTYPE_STATUS 4
69 #define YAHOO_MSGTYPE_OFFLINE 1515563606 /* yuck! */
71 struct yahoo_rawpacket
73 char version[8]; /* 7 chars and trailing null */
74 unsigned char len[4]; /* length - little endian */
75 unsigned char service[4]; /* service - little endian */
76 unsigned char connection_id[4]; /* connection number - little endian */
77 unsigned char magic_id[4]; /* magic number used for http session */
78 unsigned char unknown1[4];
79 unsigned char msgtype[4];
82 char content[1]; /* was zero, had problems with aix xlc */