Fix cut-and-pasteo that happened not to cause a problem on *P64
[obnox/wireshark/wip.git] / wiretap / netscaler.h
1 /* netscaler.h
2  *
3  * $Id$
4  *
5  * Wiretap Library
6  * Copyright (c) 2006 by Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
7  *
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.
12  *
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.
17  *
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21  */
22
23 #ifndef _NETSCALER_H
24 #define _NETSCALER_H
25
26 #include <glib.h>
27 #include <wiretap/wtap.h>
28
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 */
36
37 /* Physical Device partial packet trace */
38
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 */
45
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 */
53
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 */
61
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 */
69
70
71 /* Record types */
72 #define NSPR_HEADER_VERSION100 0x10
73 #define NSPR_HEADER_VERSION200 0x20
74 #define NSPR_HEADER_VERSION201 0x21
75 #define NSPR_HEADER_VERSION202 0x22
76 #define NSPR_HEADER_VERSION203 0x23
77
78 int nstrace_open(wtap *wth, int *err, gchar **err_info);
79 int nstrace_10_dump_can_write_encap(int encap);
80 int nstrace_20_dump_can_write_encap(int encap);
81
82 gboolean nstrace_dump_open(wtap_dumper *wdh, int *err);
83
84
85 #endif /* _NETSCALER_H */