Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
network.h
1/* network.h
2 * header field declarations, value_string def and true_false_string
3 * definitions for network manager messages
4 * Copyright 2007 Don Newton <[email protected]>
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <[email protected]>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef UNISTIM_NETWORK_H
14#define UNISTIM_NETWORK_H
15
16
17static int hf_net_diag_flag;
18static int hf_net_managers_flag;
19static int hf_net_attributes_flag;
20static int hf_net_serv_info_flag;
21static int hf_net_options_flag;
22static int hf_net_sanity_flag;
23static int hf_net_enable_diag;
24static int hf_net_enable_rudp;
25static int hf_net_server_id;
26static int hf_net_server_port;
27static int hf_net_server_action;
28static int hf_net_server_retry_count;
29static int hf_net_server_failover_id;
30static int hf_net_server_ip_address;
31static int hf_net_server_time_out;
32static int hf_net_server_config_element;
33static int hf_net_server_recovery_time_low;
34static int hf_net_server_recovery_time_high;
35static int hf_net_phone_rx_ovr_flag;
36static int hf_net_phone_tx_ovr_flag;
37static int hf_net_phone_rx_empty_flag;
38static int hf_net_phone_invalid_msg_flag;
39static int hf_net_phone_eeprom_insane_flag;
40static int hf_net_phone_eeprom_unsafe_flag;
41static int hf_net_phone_diag;
42static int hf_net_phone_rudp;
43
44static int hf_net_phone_primary_server_id;
45static int hf_net_phone_server_port;
46static int hf_net_phone_server_action;
47static int hf_net_phone_server_retry_count;
48static int hf_net_phone_server_failover_id;
49static int hf_net_phone_server_ip;
50static int hf_net_file_xfer_mode;
51static int hf_net_force_download;
52static int hf_net_use_file_server_port;
53static int hf_net_use_local_port;
54static int hf_net_file_server_port;
55static int hf_net_local_port;
56static int hf_net_file_server_address;
57static int hf_net_full_pathname;
58static int hf_net_file_identifier;
59
60static const value_string file_xfer_modes[]={
61 {0x00,"TFTP"},
62 {0x01,"TFTP with active UNIStim channel"},
63 {0x02,"UFTP"},
64 {0x03,"UFTP with active UNIStim channel"},
65 {0x04,"Future Use"},
66 {0,NULL}
67};
68
69static const value_string action_bytes[]={
70 {0x00,"Reserved"},
71 {0x01,"Establish Unistim connection with Server"},
72 {0x02,"Not Assigned"},
73 {0,NULL}
74};
75
76static int hf_key_code;
77static int hf_key_command;
78
79static const value_string key_cmds[]={
80 {0x00,"Key Released"},
81 {0x01,"Key Depressed"},
82 {0x02,"Key Repeated"},
83 {0,NULL}
84};
85
86static const value_string key_names[]={
87
88 {0x00,"Dial Pad 0"},
89 {0x01,"Dial Pad 1"},
90 {0x02,"Dial Pad 2"},
91 {0x03,"Dial Pad 3"},
92 {0x04,"Dial Pad 4"},
93 {0x05,"Dial Pad 5"},
94 {0x06,"Dial Pad 6"},
95 {0x07,"Dial Pad 7"},
96 {0x08,"Dial Pad 8"},
97 {0x09,"Dial Pad 9"},
98 {0x0a,"Dial Pad *"},
99 {0x0b,"Dial Pad #"},
100 {0x0c,"Navigation Up"},
101 {0x0d,"Navigation Down"},
102 {0x0e,"Navigation Right"},
103 {0x0f,"Navigation Left"},
104 {0x10,"Quit"},
105 {0x11,"Copy"},
106 {0x12,"Volume Up"},
107 {0x13,"Volume Down"},
108 {0x14,"Soft Key 0"},
109 {0x15,"Soft Key 1"},
110 {0x16,"Soft Key 2"},
111 {0x17,"Soft Key 3"},
112 {0x1a,"Supervisor Access Key"},
113 {0x1b,"Hold"},
114 {0x1c,"Release"},
115 {0x1d,"Mute"},
116 {0x1e,"Headset"},
117 {0x1f,"Handsfree"},
118 {0x20,"Prog Key 0"},
119 {0x21,"Prog Key 1"},
120 {0x22,"Prog Key 2"},
121 {0x23,"Prog Key 3"},
122 {0x24,"Prog Key 4"},
123 {0x25,"Prog Key 5"},
124 {0x26,"Prog Key 6"},
125 {0x27,"Prog Key 7"},
126 {0x28,"Prog Key 8"},
127 {0x29,"Prog Key 9"},
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"},
148 {0,NULL}
149};
150static const value_string network_switch_msgs[]={
151 {0x02,"Soft Reset"},
152 {0x03,"Hard Reset"},
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"},
166 {0xff,"Reserved"},
167 {0,NULL}
168};
169static const value_string network_phone_msgs[]={
170 {0x00,"Soft Reset Ack"},
171 {0x01,"Sanity OK"},
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"},
180 {0xff,"Reserved"},
181 {0,NULL}
182};
183static 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"},
194 {0,NULL}
195};
196static const value_string server_action[]={
197 {0x00,"Reserved"},
198 {0x01,"Establish UNISTIM Connection with Server"},
199 {0,NULL}
200};
201static const value_string network_elements[]={
202 {0x00,"IT IP Address"},
203 {0x01,"IT Netmask"},
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"},
211 {0x09,"Boot Mode"},
212 {0x0b,"Second Server Action"},
213 {0x0c,"Second Server Retry Count"},
214 {0x0e,"8-byte User PIN"},
215 {0,NULL}
216};
217
218
219
220#endif
221
Definition value_string.h:25