Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-rx.h
blobf62a3a4f4dec10bde9c7f5d1cb7584a4f37edc65
1 /* packet-rx.h
2 * Definitions for packet disassembly structures and routines
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef PACKET_RX_H
12 #define PACKET_RX_H
15 * Private data passed from the RX dissector to the AFS dissector.
17 struct rxinfo {
18 uint8_t type;
19 uint8_t flags;
20 uint16_t serviceid;
21 uint32_t epoch;
22 uint32_t cid;
23 uint32_t callnumber;
24 uint32_t seq;
28 * RX protocol definitions.
32 * Packet types.
34 #define RX_PACKET_TYPE_DATA 1
35 #define RX_PACKET_TYPE_ACK 2
36 #define RX_PACKET_TYPE_BUSY 3
37 #define RX_PACKET_TYPE_ABORT 4
38 #define RX_PACKET_TYPE_ACKALL 5
39 #define RX_PACKET_TYPE_CHALLENGE 6
40 #define RX_PACKET_TYPE_RESPONSE 7
41 #define RX_PACKET_TYPE_DEBUG 8
42 #define RX_PACKET_TYPE_PARAMS 9
43 #define RX_PACKET_TYPE_VERSION 13
46 * Flag bits in the RX header.
48 #define RX_CLIENT_INITIATED 1
49 #define RX_REQUEST_ACK 2
50 #define RX_LAST_PACKET 4
51 #define RX_MORE_PACKETS 8
52 #define RX_FREE_PACKET 16
53 #define RX_SLOW_START_OR_JUMBO 32
55 #define RX_ACK_TYPE_NACK 0
56 #define RX_ACK_TYPE_ACK 1
58 /* ACK reasons */
59 #define RX_ACK_REQUESTED 1
60 #define RX_ACK_DUPLICATE 2
61 #define RX_ACK_OUT_OF_SEQUENCE 3
62 #define RX_ACK_EXEEDS_WINDOW 4
63 #define RX_ACK_NOSPACE 5
64 #define RX_ACK_PING 6
65 #define RX_ACK_PING_RESPONSE 7
66 #define RX_ACK_DELAY 8
67 #define RX_ACK_IDLE 9
69 #define RX_MAXCALLS 4
71 #endif