2 * Routines for UA/UDP (Universal Alcatel over UDP) packet dissection.
3 * Copyright 2012, Alcatel-Lucent Enterprise <lars.ruoff@alcatel-lucent.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef _PACKET_UAUDP_H_
13 #define _PACKET_UAUDP_H_
15 #define UAUDP_CONNECT 0
16 #define UAUDP_CONNECT_ACK 1
17 #define UAUDP_RELEASE 2
18 #define UAUDP_RELEASE_ACK 3
19 #define UAUDP_KEEPALIVE 4
20 #define UAUDP_KEEPALIVE_ACK 5
23 #define UAUDP_START_SIG 64
24 #define UAUDP_START_SIG_ACK 65
26 #define UAUDP_CONNECT_VERSION 0x00
27 #define UAUDP_CONNECT_WINDOW_SIZE 0x01
28 #define UAUDP_CONNECT_MTU 0x02
29 #define UAUDP_CONNECT_UDP_LOST 0x03
30 #define UAUDP_CONNECT_UDP_LOST_REINIT 0x04
31 #define UAUDP_CONNECT_KEEPALIVE 0x05
32 #define UAUDP_CONNECT_QOS_IP_TOS 0x06
33 #define UAUDP_CONNECT_QOS_8021_VLID 0x07
34 #define UAUDP_CONNECT_QOS_8021_PRI 0x08
35 #define UAUDP_CONNECT_SUPERFAST_CONNECT 0x09
37 extern value_string_ext uaudp_opcode_str_ext
;
38 extern value_string_ext uaudp_connect_vals_ext
;
40 typedef enum _e_ua_direction
{
41 SYS_TO_TERM
, /* system -> terminal */
42 TERM_TO_SYS
, /* terminal -> system */
43 DIR_UNKNOWN
/* unknown direction */
46 /* struct for tap wireshark */
47 typedef struct _tap_struct_uaudp
{
49 unsigned expseq
; /* expected sequence number */
50 unsigned sntseq
; /* sent sequence number */
53 #endif /* _PACKET_UAUDP_H_ */