4 * Copyright (c) 2006 by Ravi Kondamuru <Ravi.Kondamuru@citrix.com>
6 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include <wiretap/wtap.h>
15 /* Physical Device full packet trace */
16 #define NSPR_PDPKTRACEFULLTX_V10 0x0310 /* Transmitted */
17 #define NSPR_PDPKTRACEFULLTX_V20 0xC0 /* Transmitted */
18 #define NSPR_PDPKTRACEFULLTXB_V10 0x0311 /* In transmit buffer */
19 #define NSPR_PDPKTRACEFULLTXB_V20 0xC1 /* In transmit buffer */
20 #define NSPR_PDPKTRACEFULLRX_V10 0x0312 /* Received */
21 #define NSPR_PDPKTRACEFULLRX_V20 0xC2 /* Received */
23 /* Physical Device partial packet trace */
25 #define NSPR_PDPKTRACEPARTTX_V10 0x0314 /* Transmitted */
26 #define NSPR_PDPKTRACEPARTTX_V20 0xC4 /* Transmitted */
27 #define NSPR_PDPKTRACEPARTTXB_V10 0x0315 /* In transmit buffer */
28 #define NSPR_PDPKTRACEPARTTXB_V20 0xC5 /* In transmit buffer */
29 #define NSPR_PDPKTRACEPARTRX_V10 0x0316 /* Received */
30 #define NSPR_PDPKTRACEPARTRX_V20 0xC6 /* Received */
32 /* pcb devno support (c.f. REQ16549) */
33 #define NSPR_PDPKTRACEFULLTX_V21 0xD0 /* Transmitted */
34 #define NSPR_PDPKTRACEFULLTXB_V21 0xD1 /* In transmit buffer */
35 #define NSPR_PDPKTRACEFULLRX_V21 0xD2 /* Received */
36 #define NSPR_PDPKTRACEPARTTX_V21 0xD4 /* Transmitted */
37 #define NSPR_PDPKTRACEPARTTXB_V21 0xD5 /* In transmit buffer */
38 #define NSPR_PDPKTRACEPARTRX_V21 0xD6 /* Received */
40 /* vlan tag support (c.f. REQ24791) */
41 #define NSPR_PDPKTRACEFULLTX_V22 0xE0 /* Transmitted */
42 #define NSPR_PDPKTRACEFULLTXB_V22 0xE1 /* In transmit buffer */
43 #define NSPR_PDPKTRACEFULLRX_V22 0xE2 /* Received */
44 #define NSPR_PDPKTRACEPARTTX_V22 0xE4 /* Transmitted */
45 #define NSPR_PDPKTRACEPARTTXB_V22 0xE5 /* In transmit buffer */
46 #define NSPR_PDPKTRACEPARTRX_V22 0xE6 /* Received */
48 /* Per core tracing */
49 #define NSPR_PDPKTRACEFULLTX_V23 0xF0 /* Transmitted */
50 #define NSPR_PDPKTRACEFULLTXB_V23 0xF1 /* In transmit buffer */
51 #define NSPR_PDPKTRACEFULLRX_V23 0xF2 /* Received */
52 #define NSPR_PDPKTRACEPARTTX_V23 0xF4 /* Transmitted */
53 #define NSPR_PDPKTRACEPARTTXB_V23 0xF5 /* In transmit buffer */
54 #define NSPR_PDPKTRACEPARTRX_V23 0xF6 /* Received */
57 #define NSPR_PDPKTRACEFULLTX_V24 0xF8 /* Transmitted */
58 #define NSPR_PDPKTRACEFULLTXB_V24 0xF9 /* In transmit buffer */
59 #define NSPR_PDPKTRACEFULLRX_V24 0xFA /* Received packets before NIC pipelining */
60 #define NSPR_PDPKTRACEFULLNEWRX_V24 0xfB /* Received packets after NIC pipelining */
61 #define NSPR_PDPKTRACEPARTTX_V24 0xFC /* Transmitted */
62 #define NSPR_PDPKTRACEPARTTXB_V24 0xFD /* In transmit buffer */
63 #define NSPR_PDPKTRACEPARTRX_V24 0xFE /* Received packets before NIC pipelining */
64 #define NSPR_PDPKTRACEPARTNEWRX_V24 0xFF /* Received packets after NIC pipelining */
67 #define NSPR_PDPKTRACEFULLTX_V25 0xB0 /* Transmitted */
68 #define NSPR_PDPKTRACEFULLTXB_V25 0xB1 /* In transmit buffer */
69 #define NSPR_PDPKTRACEFULLRX_V25 0xB2 /* Received packets before NIC pipelining */
70 #define NSPR_PDPKTRACEFULLNEWRX_V25 0xB3 /* Received packets after NIC pipelining */
71 #define NSPR_PDPKTRACEPARTTX_V25 0xB4 /* Transmitted */
72 #define NSPR_PDPKTRACEPARTTXB_V25 0xB5 /* In transmit buffer */
73 #define NSPR_PDPKTRACEPARTRX_V25 0xB6 /* Received packets before NIC pipelining */
74 #define NSPR_PDPKTRACEPARTNEWRX_V25 0xB7 /* Received packets after NIC pipelining */
76 /* NS DEBUG INFO PER PACKET */
77 #define NSPR_PDPKTRACEFULLTX_V26 0xA0 /* Transmitted */
78 #define NSPR_PDPKTRACEFULLTXB_V26 0xA1 /* In transmit buffer */
79 #define NSPR_PDPKTRACEFULLRX_V26 0xA2 /* Received packets before NIC pipelining */
80 #define NSPR_PDPKTRACEFULLNEWRX_V26 0xA3 /* Received packets after NIC pipelining */
81 #define NSPR_PDPKTRACEPARTTX_V26 0xA4 /* Transmitted */
82 #define NSPR_PDPKTRACEPARTTXB_V26 0xA5 /* In transmit buffer */
83 #define NSPR_PDPKTRACEPARTRX_V26 0xA6 /* Received packets before NIC pipelining */
84 #define NSPR_PDPKTRACEPARTNEWRX_V26 0xA7 /* Received packets after NIC pipelining */
86 /* Jumbo Frame Support */
87 #define NSPR_PDPKTRACEFULLTX_V30 0xA8 /* Transmitted */
88 #define NSPR_PDPKTRACEFULLTXB_V30 0xA9 /* In transmit buffer */
89 #define NSPR_PDPKTRACEFULLRX_V30 0xAA /* Received packets before NIC pipelining */
90 #define NSPR_PDPKTRACEFULLNEWRX_V30 0xAB /* Received packets after NIC pipelining */
92 #define NSPR_PDPKTRACEFULLTX_V35 0xAC /* Transmitted */
93 #define NSPR_PDPKTRACEFULLTXB_V35 0xAD /* In transmit buffer */
94 #define NSPR_PDPKTRACEFULLRX_V35 0xAE /* Received packets before NIC pipelining */
95 #define NSPR_PDPKTRACEFULLNEWRX_V35 0xAF /* Received packets after NIC pipelining */
99 #define NSPR_HEADER_VERSION100 0x10
100 #define NSPR_HEADER_VERSION200 0x20
101 #define NSPR_HEADER_VERSION201 0x21
102 #define NSPR_HEADER_VERSION202 0x22
103 #define NSPR_HEADER_VERSION203 0x23
104 #define NSPR_HEADER_VERSION204 0x24
105 #define NSPR_HEADER_VERSION205 0x25
106 #define NSPR_HEADER_VERSION206 0x26
107 #define NSPR_HEADER_VERSION300 0x30
108 #define NSPR_HEADER_VERSION350 0x35
110 wtap_open_return_val
nstrace_open(wtap
*wth
, int *err
, char **err_info
);
112 #endif /* _NETSCALER_H */