8e1edb5dbe614b915895a31a6d1abe990eb72d2c
[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 /* Physical Device full packet trace */
27 #define NSPR_PDPKTRACEFULLTX_V10        0x0310  /* Transmitted */
28 #define NSPR_PDPKTRACEFULLTX_V20        0xC0    /* Transmitted */
29 #define NSPR_PDPKTRACEFULLTXB_V10       0x0311  /* In transmit buffer */
30 #define NSPR_PDPKTRACEFULLTXB_V20       0xC1    /* In transmit buffer */
31 #define NSPR_PDPKTRACEFULLRX_V10        0x0312  /* Received */
32 #define NSPR_PDPKTRACEFULLRX_V20        0xC2    /* Received */
33
34 /* Physical Device partial packet trace */
35
36 #define NSPR_PDPKTRACEPARTTX_V10        0x0314  /* Transmitted */
37 #define NSPR_PDPKTRACEPARTTX_V20        0xC4    /* Transmitted */
38 #define NSPR_PDPKTRACEPARTTXB_V10       0x0315  /* In transmit buffer */
39 #define NSPR_PDPKTRACEPARTTXB_V20       0xC5    /* In transmit buffer */
40 #define NSPR_PDPKTRACEPARTRX_V10        0x0316  /* Received */
41 #define NSPR_PDPKTRACEPARTRX_V20        0xC6    /* Received */
42
43 /* pcb devno support (c.f. REQ16549) */
44 #define NSPR_PDPKTRACEFULLTX_V21        0xD0    /* Transmitted */
45 #define NSPR_PDPKTRACEFULLTXB_V21       0xD1    /* In transmit buffer */
46 #define NSPR_PDPKTRACEFULLRX_V21        0xD2    /* Received */
47 #define NSPR_PDPKTRACEPARTTX_V21        0xD4    /* Transmitted */
48 #define NSPR_PDPKTRACEPARTTXB_V21       0xD5    /* In transmit buffer */
49 #define NSPR_PDPKTRACEPARTRX_V21        0xD6    /* Received */
50
51 /* vlan tag support (c.f. REQ24791) */
52 #define NSPR_PDPKTRACEFULLTX_V22        0xE0    /* Transmitted */
53 #define NSPR_PDPKTRACEFULLTXB_V22       0xE1    /* In transmit buffer */
54 #define NSPR_PDPKTRACEFULLRX_V22        0xE2    /* Received */
55 #define NSPR_PDPKTRACEPARTTX_V22        0xE4    /* Transmitted */
56 #define NSPR_PDPKTRACEPARTTXB_V22       0xE5    /* In transmit buffer */
57 #define NSPR_PDPKTRACEPARTRX_V22        0xE6    /* Received */
58
59 /* Per core tracing */
60 #define NSPR_PDPKTRACEFULLTX_V23        0xF0    /* Transmitted */
61 #define NSPR_PDPKTRACEFULLTXB_V23       0xF1    /* In transmit buffer */
62 #define NSPR_PDPKTRACEFULLRX_V23        0xF2    /* Received */
63 #define NSPR_PDPKTRACEPARTTX_V23        0xF4    /* Transmitted */
64 #define NSPR_PDPKTRACEPARTTXB_V23       0xF5    /* In transmit buffer */
65 #define NSPR_PDPKTRACEPARTRX_V23        0xF6    /* Received */
66
67
68 /* Record types */
69 #define NSPR_HEADER_VERSION100 0x10
70 #define NSPR_HEADER_VERSION200 0x20
71 #define NSPR_HEADER_VERSION201 0x21
72 #define NSPR_HEADER_VERSION202 0x22
73 #define NSPR_HEADER_VERSION203 0x23
74
75 int nstrace_open(wtap *wth, int *err, gchar **err_info);
76 int nstrace_10_dump_can_write_encap(int encap);
77 int nstrace_20_dump_can_write_encap(int encap);
78
79 gboolean nstrace_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err);
80
81
82 #endif /* _NETSCALER_H */