Note that pre-0.6 libpcap didn't handle HP-UX as well as 0.6 and later
[obnox/wireshark/wip.git] / packet-rx.h
1 /* packet-rx.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet-rx.h,v 1.9 2002/02/05 21:02:36 nneul Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23  */
24
25 #ifndef PACKET_RX_H
26 #define PACKET_RX_H
27
28 /*
29  * Private data passed from the RX dissector to the AFS dissector.
30  */
31 struct rxinfo {
32         guint8  type;
33         guint8  flags;
34         guint16 serviceid;
35         guint32 callnumber;
36         guint32 seq;
37 };
38
39 /*
40  * RX protocol definitions.
41  */
42
43 /*
44  * Packet types.
45  */
46 #define RX_PACKET_TYPE_DATA             1
47 #define RX_PACKET_TYPE_ACK              2
48 #define RX_PACKET_TYPE_BUSY             3
49 #define RX_PACKET_TYPE_ABORT            4
50 #define RX_PACKET_TYPE_ACKALL           5
51 #define RX_PACKET_TYPE_CHALLENGE        6
52 #define RX_PACKET_TYPE_RESPONSE         7
53 #define RX_PACKET_TYPE_DEBUG            8
54 #define RX_PACKET_TYPE_PARAMS           9
55 #define RX_PACKET_TYPE_VERSION          13
56
57 /*
58  * Flag bits in the RX header.
59  */
60 #define RX_CLIENT_INITIATED 1
61 #define RX_REQUEST_ACK 2
62 #define RX_LAST_PACKET 4
63 #define RX_MORE_PACKETS 8
64 #define RX_FREE_PACKET 16
65 #define RX_SLOW_START_OR_JUMBO 32
66
67 #define RX_ACK_TYPE_NACK 0
68 #define RX_ACK_TYPE_ACK 1
69
70 #define RX_ACK_REQUESTED 1
71 #define RX_ACK_DUPLICATE 2
72 #define RX_ACK_OUT_OF_SEQUENCE 3
73 #define RX_ACK_EXEEDS_WINDOW 4
74 #define RX_ACK_NOSPACE 5
75 #define RX_ACK_PING 6
76 #define RX_ACK_PING_RESPONSE 7
77 #define RX_ACK_DELAY 8
78 #define RX_ACK_IDLE 9
79
80 #define RX_MAXCALLS     4
81
82 #endif