aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/unistim/network.h
blob: b53d5718b7a3434c2803bb85e2751bed15148a4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/* network.h
  * header field declarations, value_string def and true_false_string 
  * definitions for network manager messages
  * Copyright 2007 Don Newton <dnewton@cypresscom.net>
  *
  * $Id$
  *
  * Wireshark - Network traffic analyzer
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef UNISTIM_NETWORK_H
#define UNISTIM_NETWORK_H


static int hf_net_diag_flag=-1;
static int hf_net_managers_flag=-1;
static int hf_net_attributes_flag=-1;
static int hf_net_serv_info_flag=-1;
static int hf_net_options_flag=-1;
static int hf_net_sanity_flag=-1;
static int hf_net_enable_diag=-1;
static int hf_net_enable_rudp=-1;
static int hf_net_server_id=-1;
static int hf_net_server_port=-1;
static int hf_net_server_action=-1;
static int hf_net_server_retry_count=-1;
static int hf_net_server_failover_id=-1;
static int hf_net_server_ip_address=-1;
static int hf_net_server_time_out=-1;
static int hf_net_server_config_element=-1;
static int hf_net_server_recovery_time_low=-1;
static int hf_net_server_recovery_time_high=-1;
static int hf_net_phone_rx_ovr_flag=-1;
static int hf_net_phone_tx_ovr_flag=-1;
static int hf_net_phone_rx_empty_flag=-1;
static int hf_net_phone_invalid_msg_flag=-1;
static int hf_net_phone_eeprom_insane_flag=-1;
static int hf_net_phone_eeprom_unsafe_flag=-1;
static int hf_net_phone_diag=-1;
static int hf_net_phone_rudp=-1;

static int hf_net_phone_primary_server_id=-1;
static int hf_net_phone_server_port=-1;
static int hf_net_phone_server_action=-1;
static int hf_net_phone_server_retry_count=-1;
static int hf_net_phone_server_failover_id=-1;
static int hf_net_phone_server_ip=-1;
static int hf_net_file_xfer_mode =-1;
static int hf_net_force_download =-1;
static int hf_net_use_file_server_port =-1;
static int hf_net_use_local_port=-1;
static int hf_net_file_server_port=-1;
static int hf_net_local_port=-1;
static int hf_net_file_server_address=-1;
static int hf_net_full_pathname=-1;
static int hf_net_file_identifier=-1;

static const value_string file_xfer_modes[]={
 {0x00,"TFTP"},
 {0x01,"TFTP with active UNIStim channel"},
 {0x02,"UFTP"},
 {0x03,"UFTP with active UNIStim channel"},
 {0x04,"Future Use"},
 {0,NULL}
};

static const value_string action_bytes[]={
 {0x00,"Reserved"},
 {0x01,"Establish Unistim connection with Server"},
 {0x02,"Not Assigned"},
 {0,NULL}
};

static int hf_key_code=-1;
static int hf_key_command=-1;

static const value_string key_cmds[]={
 {0x00,"Key Released"},
 {0x01,"Key Depressed"},
 {0x02,"Key Repeated"},
 {0,NULL}
};

static const value_string key_names[]={

 {0x00,"Dial Pad 0"},
 {0x01,"Dial Pad 1"},
 {0x02,"Dial Pad 2"},
 {0x03,"Dial Pad 3"},
 {0x04,"Dial Pad 4"},
 {0x05,"Dial Pad 5"},
 {0x06,"Dial Pad 6"},
 {0x07,"Dial Pad 7"},
 {0x08,"Dial Pad 8"},
 {0x09,"Dial Pad 9"},
 {0x0a,"Dial Pad *"},
 {0x0b,"Dial Pad #"},
 {0x0c,"Navigation Up"},
 {0x0d,"Navigation Down"},
 {0x0e,"Navigation Right"},
 {0x0f,"Navigation Left"},
 {0x10,"Quit"},
 {0x11,"Copy"},
 {0x12,"Volume Up"},
 {0x13,"Volume Down"},
 {0x14,"Soft Key 0"},
 {0x15,"Soft Key 1"},
 {0x16,"Soft Key 2"},
 {0x17,"Soft Key 3"},
 {0x1a,"Supervisor Access Key"},
 {0x1b,"Hold"},
 {0x1c,"Release"},
 {0x1d,"Mute"},
 {0x1e,"Headset"},
 {0x1f,"Handsfree"},
 {0x20,"Prog Key 0"},
 {0x21,"Prog Key 1"},
 {0x22,"Prog Key 2"},
 {0x23,"Prog Key 3"},
 {0x24,"Prog Key 4"},
 {0x25,"Prog Key 5"},
 {0x26,"Prog Key 6"},
 {0x27,"Prog Key 7"},
 {0x28,"Prog Key 8"},
 {0x29,"Prog Key 9"},
 {0x2a,"Prog Key 10"},
 {0x2b,"Prog Key 11"},
 {0x2c,"Prog Key 12"},
 {0x2d,"Prog Key 13"},
 {0x2e,"Prog Key 14"},
 {0x2f,"Prog Key 15"},
 {0x30,"Prog Key 16"},
 {0x31,"Prog Key 17"},
 {0x32,"Prog Key 18"},
 {0x33,"Prog Key 19"},
 {0x34,"Prog Key 20"},
 {0x35,"Prog Key 21"},
 {0x36,"Prog Key 22"},
 {0x37,"Prog Key 23"},
 {0x38,"Prog Key 24"},
 {0x3b,"Conspicuous Key 0"},
 {0x3c,"Conspicuous Key 1"},
 {0x3d,"Conspicuous Key 2"},
 {0x3e,"Conspicuous Key 3"},
 {0x3f,"Conspicuous Key 4"},
 {0,NULL}
};
static const value_string network_switch_msgs[]={
    {0x02,"Soft Reset"},
    {0x03,"Hard Reset"},
    {0x04,"Query Network Manager"},
    {0x05,"Network Manager Options"},
    {0x06,"QoS Configuration"},
    {0x09,"Set RTCP Source Description Item"},
    {0x0b,"Download Server Information"},
    {0x0c,"Server Switch"},
    {0x0d,"Query Network Configuration Element"},
    {0x0e,"Download Software Upgrade"},
    {0x0f,"Set RTCP Report Interval"},
    {0x10,"Set Primary Server"},
    {0x12,"Reset Watchdog"},
    {0x13,"Set Recovery Procedure Time Interval"},
    {0x14,"Transport Reliability Layer Parameters Download"},
    {0xff,"Reserved"},
    {0,NULL}
};
static const value_string network_phone_msgs[]={
 {0x00,"Soft Reset Ack"},
 {0x01,"Sanity OK"},
 {0x02,"Network Manager Attributes Info"},
 {0x03,"Network Manager Diagnostic Info"},
 {0x04,"Manager IDs"},
 {0x05,"Network Manager Options Report"},
 {0x08,"Resume Connection with Server"},
 {0x09,"Suspend Connection with Server"},
 {0x0b,"Network Configuration Element Report"},
 {0x0c,"Server Information Report"},
 {0xff,"Reserved"},
 {0,NULL}
};
static const value_string network_server_id[]={
 {0x00,"First Server"},
 {0x01,"Second Server"},
 {0x02,"Third Server"},
 {0x03,"Fourth Server"},
 {0x04,"Fifth Server"},
 {0x05,"Sixth Server"},
 {0x06,"Seventh Server"},
 {0x07,"Eighth Server"},
 {0x08,"Ninth Server"},
 {0x09,"Tenth Server"},
 {0,NULL}
};
static const value_string server_action[]={
 {0x00,"Reserved"},
 {0x01,"Establish UNISTIM Connection with Server"},
 {0,NULL}
};
static const value_string network_elements[]={
 {0x00,"IT IP Address"},
 {0x01,"IT Netmask"},
 {0x02,"Default Gateway IP Address"},
 {0x03,"First Server IP Address"},
 {0x04,"First Server Port Number"},
 {0x05,"Second Server IP Address"},
 {0x06,"Second Server Port Number"},
 {0x07,"First Server Action"},
 {0x08,"First Server Retry Count"},
 {0x09,"Boot Mode"},
 {0x0b,"Second Server Action"},
 {0x0c,"Second Server Retry Count"},
 {0x0e,"8-byte User PIN"},
 {0,NULL}
};



#endif