2 * header field declarations, value_string def and true_false_string
3 * definitions for network manager messages
4 * Copyright 2007 Don Newton <dnewton@cypresscom.net>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef UNISTIM_NETWORK_H
14 #define UNISTIM_NETWORK_H
17 static int hf_net_diag_flag
;
18 static int hf_net_managers_flag
;
19 static int hf_net_attributes_flag
;
20 static int hf_net_serv_info_flag
;
21 static int hf_net_options_flag
;
22 static int hf_net_sanity_flag
;
23 static int hf_net_enable_diag
;
24 static int hf_net_enable_rudp
;
25 static int hf_net_server_id
;
26 static int hf_net_server_port
;
27 static int hf_net_server_action
;
28 static int hf_net_server_retry_count
;
29 static int hf_net_server_failover_id
;
30 static int hf_net_server_ip_address
;
31 static int hf_net_server_time_out
;
32 static int hf_net_server_config_element
;
33 static int hf_net_server_recovery_time_low
;
34 static int hf_net_server_recovery_time_high
;
35 static int hf_net_phone_rx_ovr_flag
;
36 static int hf_net_phone_tx_ovr_flag
;
37 static int hf_net_phone_rx_empty_flag
;
38 static int hf_net_phone_invalid_msg_flag
;
39 static int hf_net_phone_eeprom_insane_flag
;
40 static int hf_net_phone_eeprom_unsafe_flag
;
41 static int hf_net_phone_diag
;
42 static int hf_net_phone_rudp
;
44 static int hf_net_phone_primary_server_id
;
45 static int hf_net_phone_server_port
;
46 static int hf_net_phone_server_action
;
47 static int hf_net_phone_server_retry_count
;
48 static int hf_net_phone_server_failover_id
;
49 static int hf_net_phone_server_ip
;
50 static int hf_net_file_xfer_mode
;
51 static int hf_net_force_download
;
52 static int hf_net_use_file_server_port
;
53 static int hf_net_use_local_port
;
54 static int hf_net_file_server_port
;
55 static int hf_net_local_port
;
56 static int hf_net_file_server_address
;
57 static int hf_net_full_pathname
;
58 static int hf_net_file_identifier
;
60 static const value_string file_xfer_modes
[]={
62 {0x01,"TFTP with active UNIStim channel"},
64 {0x03,"UFTP with active UNIStim channel"},
69 static const value_string action_bytes
[]={
71 {0x01,"Establish Unistim connection with Server"},
72 {0x02,"Not Assigned"},
76 static int hf_key_code
;
77 static int hf_key_command
;
79 static const value_string key_cmds
[]={
80 {0x00,"Key Released"},
81 {0x01,"Key Depressed"},
82 {0x02,"Key Repeated"},
86 static const value_string key_names
[]={
100 {0x0c,"Navigation Up"},
101 {0x0d,"Navigation Down"},
102 {0x0e,"Navigation Right"},
103 {0x0f,"Navigation Left"},
107 {0x13,"Volume Down"},
112 {0x1a,"Supervisor Access Key"},
128 {0x2a,"Prog Key 10"},
129 {0x2b,"Prog Key 11"},
130 {0x2c,"Prog Key 12"},
131 {0x2d,"Prog Key 13"},
132 {0x2e,"Prog Key 14"},
133 {0x2f,"Prog Key 15"},
134 {0x30,"Prog Key 16"},
135 {0x31,"Prog Key 17"},
136 {0x32,"Prog Key 18"},
137 {0x33,"Prog Key 19"},
138 {0x34,"Prog Key 20"},
139 {0x35,"Prog Key 21"},
140 {0x36,"Prog Key 22"},
141 {0x37,"Prog Key 23"},
142 {0x38,"Prog Key 24"},
143 {0x3b,"Conspicuous Key 0"},
144 {0x3c,"Conspicuous Key 1"},
145 {0x3d,"Conspicuous Key 2"},
146 {0x3e,"Conspicuous Key 3"},
147 {0x3f,"Conspicuous Key 4"},
150 static const value_string network_switch_msgs
[]={
153 {0x04,"Query Network Manager"},
154 {0x05,"Network Manager Options"},
155 {0x06,"QoS Configuration"},
156 {0x09,"Set RTCP Source Description Item"},
157 {0x0b,"Download Server Information"},
158 {0x0c,"Server Switch"},
159 {0x0d,"Query Network Configuration Element"},
160 {0x0e,"Download Software Upgrade"},
161 {0x0f,"Set RTCP Report Interval"},
162 {0x10,"Set Primary Server"},
163 {0x12,"Reset Watchdog"},
164 {0x13,"Set Recovery Procedure Time Interval"},
165 {0x14,"Transport Reliability Layer Parameters Download"},
169 static const value_string network_phone_msgs
[]={
170 {0x00,"Soft Reset Ack"},
172 {0x02,"Network Manager Attributes Info"},
173 {0x03,"Network Manager Diagnostic Info"},
174 {0x04,"Manager IDs"},
175 {0x05,"Network Manager Options Report"},
176 {0x08,"Resume Connection with Server"},
177 {0x09,"Suspend Connection with Server"},
178 {0x0b,"Network Configuration Element Report"},
179 {0x0c,"Server Information Report"},
183 static const value_string network_server_id
[]={
184 {0x00,"First Server"},
185 {0x01,"Second Server"},
186 {0x02,"Third Server"},
187 {0x03,"Fourth Server"},
188 {0x04,"Fifth Server"},
189 {0x05,"Sixth Server"},
190 {0x06,"Seventh Server"},
191 {0x07,"Eighth Server"},
192 {0x08,"Ninth Server"},
193 {0x09,"Tenth Server"},
196 static const value_string server_action
[]={
198 {0x01,"Establish UNISTIM Connection with Server"},
201 static const value_string network_elements
[]={
202 {0x00,"IT IP Address"},
204 {0x02,"Default Gateway IP Address"},
205 {0x03,"First Server IP Address"},
206 {0x04,"First Server Port Number"},
207 {0x05,"Second Server IP Address"},
208 {0x06,"Second Server Port Number"},
209 {0x07,"First Server Action"},
210 {0x08,"First Server Retry Count"},
212 {0x0b,"Second Server Action"},
213 {0x0c,"Second Server Retry Count"},
214 {0x0e,"8-byte User PIN"},