| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-rx.h
1/* packet-rx.h
2 * Definitions for packet disassembly structures and routines
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10
11#ifndef PACKET_RX_H
12#define PACKET_RX_H
13
14/*
15 * Private data passed from the RX dissector to the AFS dissector.
16 */
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;
25};
26
27/*
28 * RX protocol definitions.
29 */
30
31/*
32 * Packet types.
33 */
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
44
45/*
46 * Flag bits in the RX header.
47 */
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
54
55#define RX_ACK_TYPE_NACK 0
56#define RX_ACK_TYPE_ACK 1
57
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
68
69#define RX_MAXCALLS 4
70
71#endif
rxinfo
Definition packet-rx.h:17