blob: a992bf8ad8727d533be17ea73f1755c65e8c7120 (
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
|
/** @file
*
* Wiretap Library
* Copyright (c) 2006 by Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _NETSCALER_H
#define _NETSCALER_H
#include <glib.h>
#include <wiretap/wtap.h>
/* Physical Device full packet trace */
#define NSPR_PDPKTRACEFULLTX_V10 0x0310 /* Transmitted */
#define NSPR_PDPKTRACEFULLTX_V20 0xC0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V10 0x0311 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLTXB_V20 0xC1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V10 0x0312 /* Received */
#define NSPR_PDPKTRACEFULLRX_V20 0xC2 /* Received */
/* Physical Device partial packet trace */
#define NSPR_PDPKTRACEPARTTX_V10 0x0314 /* Transmitted */
#define NSPR_PDPKTRACEPARTTX_V20 0xC4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V10 0x0315 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTTXB_V20 0xC5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V10 0x0316 /* Received */
#define NSPR_PDPKTRACEPARTRX_V20 0xC6 /* Received */
/* pcb devno support (c.f. REQ16549) */
#define NSPR_PDPKTRACEFULLTX_V21 0xD0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V21 0xD1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V21 0xD2 /* Received */
#define NSPR_PDPKTRACEPARTTX_V21 0xD4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V21 0xD5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V21 0xD6 /* Received */
/* vlan tag support (c.f. REQ24791) */
#define NSPR_PDPKTRACEFULLTX_V22 0xE0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V22 0xE1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V22 0xE2 /* Received */
#define NSPR_PDPKTRACEPARTTX_V22 0xE4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V22 0xE5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V22 0xE6 /* Received */
/* Per core tracing */
#define NSPR_PDPKTRACEFULLTX_V23 0xF0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V23 0xF1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V23 0xF2 /* Received */
#define NSPR_PDPKTRACEPARTTX_V23 0xF4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V23 0xF5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V23 0xF6 /* Received */
/* cluster tracing*/
#define NSPR_PDPKTRACEFULLTX_V24 0xF8 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V24 0xF9 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V24 0xFA /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEFULLNEWRX_V24 0xfB /* Received packets after NIC pipelining */
#define NSPR_PDPKTRACEPARTTX_V24 0xFC /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V24 0xFD /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V24 0xFE /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEPARTNEWRX_V24 0xFF /* Received packets after NIC pipelining */
/* vm info tracing*/
#define NSPR_PDPKTRACEFULLTX_V25 0xB0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V25 0xB1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V25 0xB2 /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEFULLNEWRX_V25 0xB3 /* Received packets after NIC pipelining */
#define NSPR_PDPKTRACEPARTTX_V25 0xB4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V25 0xB5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V25 0xB6 /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEPARTNEWRX_V25 0xB7 /* Received packets after NIC pipelining */
/* NS DEBUG INFO PER PACKET */
#define NSPR_PDPKTRACEFULLTX_V26 0xA0 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V26 0xA1 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V26 0xA2 /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEFULLNEWRX_V26 0xA3 /* Received packets after NIC pipelining */
#define NSPR_PDPKTRACEPARTTX_V26 0xA4 /* Transmitted */
#define NSPR_PDPKTRACEPARTTXB_V26 0xA5 /* In transmit buffer */
#define NSPR_PDPKTRACEPARTRX_V26 0xA6 /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEPARTNEWRX_V26 0xA7 /* Received packets after NIC pipelining */
/* Jumbo Frame Support */
#define NSPR_PDPKTRACEFULLTX_V30 0xA8 /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V30 0xA9 /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V30 0xAA /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEFULLNEWRX_V30 0xAB /* Received packets after NIC pipelining */
#define NSPR_PDPKTRACEFULLTX_V35 0xAC /* Transmitted */
#define NSPR_PDPKTRACEFULLTXB_V35 0xAD /* In transmit buffer */
#define NSPR_PDPKTRACEFULLRX_V35 0xAE /* Received packets before NIC pipelining */
#define NSPR_PDPKTRACEFULLNEWRX_V35 0xAF /* Received packets after NIC pipelining */
/* Record types */
#define NSPR_HEADER_VERSION100 0x10
#define NSPR_HEADER_VERSION200 0x20
#define NSPR_HEADER_VERSION201 0x21
#define NSPR_HEADER_VERSION202 0x22
#define NSPR_HEADER_VERSION203 0x23
#define NSPR_HEADER_VERSION204 0x24
#define NSPR_HEADER_VERSION205 0x25
#define NSPR_HEADER_VERSION206 0x26
#define NSPR_HEADER_VERSION300 0x30
#define NSPR_HEADER_VERSION350 0x35
wtap_open_return_val nstrace_open(wtap *wth, int *err, gchar **err_info);
#endif /* _NETSCALER_H */
|