summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rx.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-rx.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-rx.h')
-rw-r--r--epan/dissectors/packet-rx.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rx.h b/epan/dissectors/packet-rx.h
new file mode 100644
index 00000000..9212fbe0
--- /dev/null
+++ b/epan/dissectors/packet-rx.h
@@ -0,0 +1,71 @@
+/* packet-rx.h
+ * Definitions for packet disassembly structures and routines
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef PACKET_RX_H
+#define PACKET_RX_H
+
+/*
+ * Private data passed from the RX dissector to the AFS dissector.
+ */
+struct rxinfo {
+ guint8 type;
+ guint8 flags;
+ guint16 serviceid;
+ guint32 epoch;
+ guint32 cid;
+ guint32 callnumber;
+ guint32 seq;
+};
+
+/*
+ * RX protocol definitions.
+ */
+
+/*
+ * Packet types.
+ */
+#define RX_PACKET_TYPE_DATA 1
+#define RX_PACKET_TYPE_ACK 2
+#define RX_PACKET_TYPE_BUSY 3
+#define RX_PACKET_TYPE_ABORT 4
+#define RX_PACKET_TYPE_ACKALL 5
+#define RX_PACKET_TYPE_CHALLENGE 6
+#define RX_PACKET_TYPE_RESPONSE 7
+#define RX_PACKET_TYPE_DEBUG 8
+#define RX_PACKET_TYPE_PARAMS 9
+#define RX_PACKET_TYPE_VERSION 13
+
+/*
+ * Flag bits in the RX header.
+ */
+#define RX_CLIENT_INITIATED 1
+#define RX_REQUEST_ACK 2
+#define RX_LAST_PACKET 4
+#define RX_MORE_PACKETS 8
+#define RX_FREE_PACKET 16
+#define RX_SLOW_START_OR_JUMBO 32
+
+#define RX_ACK_TYPE_NACK 0
+#define RX_ACK_TYPE_ACK 1
+
+/* ACK reasons */
+#define RX_ACK_REQUESTED 1
+#define RX_ACK_DUPLICATE 2
+#define RX_ACK_OUT_OF_SEQUENCE 3
+#define RX_ACK_EXEEDS_WINDOW 4
+#define RX_ACK_NOSPACE 5
+#define RX_ACK_PING 6
+#define RX_ACK_PING_RESPONSE 7
+#define RX_ACK_DELAY 8
+#define RX_ACK_IDLE 9
+
+#define RX_MAXCALLS 4
+
+#endif