blob: 75b690bbbd384c655a3464144f63d0f645ffddcd (
plain) (
blame)
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>WinPcap: __CPU_Private_Data Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li><a href="functions.html"><span>Data Fields</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>__CPU_Private_Data Struct Reference<br/>
<small>
[<a class="el" href="group__NPF__include.html">NPF structures and definitions</a>]</small>
</h1><!-- doxytag: class="__CPU_Private_Data" -->
<p>Kernel buffer of each CPU.
<a href="#_details">More...</a></p>
<p><code>#include <<a class="el" href="Packet_8h_source.html">Packet.h</a>></code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a897d2179904e0d6fafd73b3d400052de">P</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Zero-based index of the producer in the buffer. It indicates the first free byte to be written. <a href="#a897d2179904e0d6fafd73b3d400052de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a2df61425b58c12f1de6f0e6aaeb131ea">C</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Zero-based index of the consumer in the buffer. It indicates the first free byte to be read. <a href="#a2df61425b58c12f1de6f0e6aaeb131ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#acaf5ef1e959170b06d01fc65a27bb951">Free</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Number of the free bytes in the buffer. <a href="#acaf5ef1e959170b06d01fc65a27bb951"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PUCHAR </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a7ed9f5e612c567cfa25af0f46a25dad4">Buffer</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Pointer to the kernel buffer used to capture packets. <a href="#a7ed9f5e612c567cfa25af0f46a25dad4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#ac723ebbda9ff2ef8e4d773c7305db1f6">Accepted</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a82febc79f3f3bbf857a4fd34447b5ca2">Received</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a04eecb86252e644a73f38346274340dc">Dropped</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NDIS_SPIN_LOCK </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a59c9030d87b24c9cb4efdabe9c7b9337">BufferLock</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">It protects the buffer associated with this CPU. <a href="#a59c9030d87b24c9cb4efdabe9c7b9337"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PMDL </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#acae03ade5065032ceaeef0bd03217b4f">TransferMdl1</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">MDL used to map the portion of the buffer that will contain an incoming packet. <a href="#acae03ade5065032ceaeef0bd03217b4f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">PMDL </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a17b59e156d00ef5c76bdfe454c73ca49">TransferMdl2</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Second MDL used to map the portion of the buffer that will contain an incoming packet. <a href="#a17b59e156d00ef5c76bdfe454c73ca49"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ULONG </td><td class="memItemRight" valign="bottom"><a class="el" href="struct____CPU__Private__Data.html#a58f2c915dfc7041ccb0d568eb79b494e">NewP</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Used by NdisTransferData() (when we call NdisTransferData, p index must be updated only in the TransferDataComplete. <a href="#a58f2c915dfc7041ccb0d568eb79b494e"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Kernel buffer of each CPU. </p>
<p>Structure containing the kernel buffer (and other CPU related fields) used to capture packets. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00207">207</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="ac723ebbda9ff2ef8e4d773c7305db1f6"></a><!-- doxytag: member="__CPU_Private_Data::Accepted" ref="ac723ebbda9ff2ef8e4d773c7305db1f6" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#ac723ebbda9ff2ef8e4d773c7305db1f6">Accepted</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of packet that current capture instance acepted, from its opening. A packet is accepted if it passes the filter and fits in the buffer. Accepted packets are the ones that reach the application. This number is related to the particular CPU this structure is referring to. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00213">213</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a7ed9f5e612c567cfa25af0f46a25dad4"></a><!-- doxytag: member="__CPU_Private_Data::Buffer" ref="a7ed9f5e612c567cfa25af0f46a25dad4" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PUCHAR <a class="el" href="struct____CPU__Private__Data.html#a7ed9f5e612c567cfa25af0f46a25dad4">Buffer</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Pointer to the kernel buffer used to capture packets. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00212">212</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a59c9030d87b24c9cb4efdabe9c7b9337"></a><!-- doxytag: member="__CPU_Private_Data::BufferLock" ref="a59c9030d87b24c9cb4efdabe9c7b9337" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">NDIS_SPIN_LOCK <a class="el" href="struct____CPU__Private__Data.html#a59c9030d87b24c9cb4efdabe9c7b9337">BufferLock</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>It protects the buffer associated with this CPU. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00225">225</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a2df61425b58c12f1de6f0e6aaeb131ea"></a><!-- doxytag: member="__CPU_Private_Data::C" ref="a2df61425b58c12f1de6f0e6aaeb131ea" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#a2df61425b58c12f1de6f0e6aaeb131ea">C</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Zero-based index of the consumer in the buffer. It indicates the first free byte to be read. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00210">210</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a04eecb86252e644a73f38346274340dc"></a><!-- doxytag: member="__CPU_Private_Data::Dropped" ref="a04eecb86252e644a73f38346274340dc" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#a04eecb86252e644a73f38346274340dc">Dropped</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of packet that current instance had to drop, from its opening. A packet is dropped if there is no more space to store it in the circular buffer that the driver associates to current instance. This number is related to the particular CPU this structure is referring to. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00221">221</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="acaf5ef1e959170b06d01fc65a27bb951"></a><!-- doxytag: member="__CPU_Private_Data::Free" ref="acaf5ef1e959170b06d01fc65a27bb951" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#acaf5ef1e959170b06d01fc65a27bb951">Free</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of the free bytes in the buffer. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00211">211</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a58f2c915dfc7041ccb0d568eb79b494e"></a><!-- doxytag: member="__CPU_Private_Data::NewP" ref="a58f2c915dfc7041ccb0d568eb79b494e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#a58f2c915dfc7041ccb0d568eb79b494e">NewP</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Used by NdisTransferData() (when we call NdisTransferData, p index must be updated only in the TransferDataComplete. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00228">228</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a897d2179904e0d6fafd73b3d400052de"></a><!-- doxytag: member="__CPU_Private_Data::P" ref="a897d2179904e0d6fafd73b3d400052de" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#a897d2179904e0d6fafd73b3d400052de">P</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Zero-based index of the producer in the buffer. It indicates the first free byte to be written. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00209">209</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a82febc79f3f3bbf857a4fd34447b5ca2"></a><!-- doxytag: member="__CPU_Private_Data::Received" ref="a82febc79f3f3bbf857a4fd34447b5ca2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">ULONG <a class="el" href="struct____CPU__Private__Data.html#a82febc79f3f3bbf857a4fd34447b5ca2">Received</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Number of packets received by current instance from its opening, i.e. number of packet received by the network adapter since the beginning of the capture/monitoring/dump session. This number is related to the particular CPU this structure is referring to. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00217">217</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="acae03ade5065032ceaeef0bd03217b4f"></a><!-- doxytag: member="__CPU_Private_Data::TransferMdl1" ref="acae03ade5065032ceaeef0bd03217b4f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PMDL <a class="el" href="struct____CPU__Private__Data.html#acae03ade5065032ceaeef0bd03217b4f">TransferMdl1</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>MDL used to map the portion of the buffer that will contain an incoming packet. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00226">226</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<a class="anchor" id="a17b59e156d00ef5c76bdfe454c73ca49"></a><!-- doxytag: member="__CPU_Private_Data::TransferMdl2" ref="a17b59e156d00ef5c76bdfe454c73ca49" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PMDL <a class="el" href="struct____CPU__Private__Data.html#a17b59e156d00ef5c76bdfe454c73ca49">TransferMdl2</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Second MDL used to map the portion of the buffer that will contain an incoming packet. </p>
<p>Definition at line <a class="el" href="Packet_8h_source.html#l00227">227</a> of file <a class="el" href="Packet_8h_source.html">Packet.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="Packet_8h_source.html">Packet.h</a></li>
</ul>
</div>
<hr>
<p align="right"><img border="0" src="winpcap_small.gif" align="absbottom" width="91" height="27">
documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2009
CACE Technologies. All rights reserved.</p>
|