DCERPC: factor out proto_tree_add_dcerpc_drep()
[wireshark-wip.git] / wiretap / netscaler.h
blob6ca9e608a0b6a4b73ee4eff7d63b84d2ca0cfc4b
1 /* netscaler.h
3 * $Id$
5 * Wiretap Library
6 * Copyright (c) 2006 by Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef _NETSCALER_H
24 #define _NETSCALER_H
26 #include <glib.h>
27 #include <wiretap/wtap.h>
29 /* Physical Device full packet trace */
30 #define NSPR_PDPKTRACEFULLTX_V10 0x0310 /* Transmitted */
31 #define NSPR_PDPKTRACEFULLTX_V20 0xC0 /* Transmitted */
32 #define NSPR_PDPKTRACEFULLTXB_V10 0x0311 /* In transmit buffer */
33 #define NSPR_PDPKTRACEFULLTXB_V20 0xC1 /* In transmit buffer */
34 #define NSPR_PDPKTRACEFULLRX_V10 0x0312 /* Received */
35 #define NSPR_PDPKTRACEFULLRX_V20 0xC2 /* Received */
37 /* Physical Device partial packet trace */
39 #define NSPR_PDPKTRACEPARTTX_V10 0x0314 /* Transmitted */
40 #define NSPR_PDPKTRACEPARTTX_V20 0xC4 /* Transmitted */
41 #define NSPR_PDPKTRACEPARTTXB_V10 0x0315 /* In transmit buffer */
42 #define NSPR_PDPKTRACEPARTTXB_V20 0xC5 /* In transmit buffer */
43 #define NSPR_PDPKTRACEPARTRX_V10 0x0316 /* Received */
44 #define NSPR_PDPKTRACEPARTRX_V20 0xC6 /* Received */
46 /* pcb devno support (c.f. REQ16549) */
47 #define NSPR_PDPKTRACEFULLTX_V21 0xD0 /* Transmitted */
48 #define NSPR_PDPKTRACEFULLTXB_V21 0xD1 /* In transmit buffer */
49 #define NSPR_PDPKTRACEFULLRX_V21 0xD2 /* Received */
50 #define NSPR_PDPKTRACEPARTTX_V21 0xD4 /* Transmitted */
51 #define NSPR_PDPKTRACEPARTTXB_V21 0xD5 /* In transmit buffer */
52 #define NSPR_PDPKTRACEPARTRX_V21 0xD6 /* Received */
54 /* vlan tag support (c.f. REQ24791) */
55 #define NSPR_PDPKTRACEFULLTX_V22 0xE0 /* Transmitted */
56 #define NSPR_PDPKTRACEFULLTXB_V22 0xE1 /* In transmit buffer */
57 #define NSPR_PDPKTRACEFULLRX_V22 0xE2 /* Received */
58 #define NSPR_PDPKTRACEPARTTX_V22 0xE4 /* Transmitted */
59 #define NSPR_PDPKTRACEPARTTXB_V22 0xE5 /* In transmit buffer */
60 #define NSPR_PDPKTRACEPARTRX_V22 0xE6 /* Received */
62 /* Per core tracing */
63 #define NSPR_PDPKTRACEFULLTX_V23 0xF0 /* Transmitted */
64 #define NSPR_PDPKTRACEFULLTXB_V23 0xF1 /* In transmit buffer */
65 #define NSPR_PDPKTRACEFULLRX_V23 0xF2 /* Received */
66 #define NSPR_PDPKTRACEPARTTX_V23 0xF4 /* Transmitted */
67 #define NSPR_PDPKTRACEPARTTXB_V23 0xF5 /* In transmit buffer */
68 #define NSPR_PDPKTRACEPARTRX_V23 0xF6 /* Received */
70 /* cluster tracing*/
71 #define NSPR_PDPKTRACEFULLTX_V24 0xF8 /* Transmitted */
72 #define NSPR_PDPKTRACEFULLTXB_V24 0xF9 /* In transmit buffer */
73 #define NSPR_PDPKTRACEFULLRX_V24 0xFA /* Received packets before NIC pipelining */
74 #define NSPR_PDPKTRACEFULLNEWRX_V24 0xfB /* Received packets after NIC pipelining */
75 #define NSPR_PDPKTRACEPARTTX_V24 0xFC /* Transmitted */
76 #define NSPR_PDPKTRACEPARTTXB_V24 0xFD /* In transmit buffer */
77 #define NSPR_PDPKTRACEPARTRX_V24 0xFE /* Received packets before NIC pipelining */
78 #define NSPR_PDPKTRACEPARTNEWRX_V24 0xFF /* Received packets after NIC pipelining */
80 /* vm info tracing*/
81 #define NSPR_PDPKTRACEFULLTX_V25 0xB0 /* Transmitted */
82 #define NSPR_PDPKTRACEFULLTXB_V25 0xB1 /* In transmit buffer */
83 #define NSPR_PDPKTRACEFULLRX_V25 0xB2 /* Received packets before NIC pipelining */
84 #define NSPR_PDPKTRACEFULLNEWRX_V25 0xB3 /* Received packets after NIC pipelining */
85 #define NSPR_PDPKTRACEPARTTX_V25 0xB4 /* Transmitted */
86 #define NSPR_PDPKTRACEPARTTXB_V25 0xB5 /* In transmit buffer */
87 #define NSPR_PDPKTRACEPARTRX_V25 0xB6 /* Received packets before NIC pipelining */
88 #define NSPR_PDPKTRACEPARTNEWRX_V25 0xB7 /* Received packets after NIC pipelining */
90 /* NS DEBUG INFO PER PACKET */
91 #define NSPR_PDPKTRACEFULLTX_V26 0xA0 /* Transmitted */
92 #define NSPR_PDPKTRACEFULLTXB_V26 0xA1 /* In transmit buffer */
93 #define NSPR_PDPKTRACEFULLRX_V26 0xA2 /* Received packets before NIC pipelining */
94 #define NSPR_PDPKTRACEFULLNEWRX_V26 0xA3 /* Received packets after NIC pipelining */
95 #define NSPR_PDPKTRACEPARTTX_V26 0xA4 /* Transmitted */
96 #define NSPR_PDPKTRACEPARTTXB_V26 0xA5 /* In transmit buffer */
97 #define NSPR_PDPKTRACEPARTRX_V26 0xA6 /* Received packets before NIC pipelining */
98 #define NSPR_PDPKTRACEPARTNEWRX_V26 0xA7 /* Received packets after NIC pipelining */
100 /* Record types */
101 #define NSPR_HEADER_VERSION100 0x10
102 #define NSPR_HEADER_VERSION200 0x20
103 #define NSPR_HEADER_VERSION201 0x21
104 #define NSPR_HEADER_VERSION202 0x22
105 #define NSPR_HEADER_VERSION203 0x23
106 #define NSPR_HEADER_VERSION204 0x24
107 #define NSPR_HEADER_VERSION205 0x25
108 #define NSPR_HEADER_VERSION206 0x26
109 int nstrace_open(wtap *wth, int *err, gchar **err_info);
110 int nstrace_10_dump_can_write_encap(int encap);
111 int nstrace_20_dump_can_write_encap(int encap);
113 gboolean nstrace_dump_open(wtap_dumper *wdh, int *err);
116 #endif /* _NETSCALER_H */