<s>
TaZmen	O
Sniffer	O
Protocol	O
(	O
TZSP	B-Protocol
)	O
is	O
an	O
encapsulation	B-Protocol
protocol	O
used	O
to	O
wrap	O
other	O
protocols	O
.	O
</s>
<s>
It	O
is	O
commonly	O
used	O
to	O
wrap	O
802.11	O
wireless	O
packets	B-Protocol
to	O
support	O
Intrusion	O
Detection	O
Systems	O
(	O
IDS	O
)	O
,	O
wireless	O
tracking	O
,	O
or	O
other	O
wireless	O
applications	O
.	O
</s>
<s>
A	O
number	O
of	O
802.11	O
sensors	O
and	O
Access	B-Device
Points	I-Device
use	O
the	O
TZSP	B-Protocol
protocol	O
for	O
packet	B-Protocol
capture	O
.	O
</s>
<s>
It	O
is	O
an	O
open	O
protocol	O
that	O
was	O
designed	O
to	O
encapsulate	O
other	O
protocols	O
over	O
UDP	B-Protocol
.	O
</s>
<s>
The	O
protocol	O
specified	O
three	O
parts	O
to	O
each	O
TZSP	B-Protocol
packet	B-Protocol
:	O
A	O
4-byte	O
header	O
followed	O
by	O
one	O
or	O
more	O
tagged	O
fields	O
,	O
the	O
last	O
of	O
which	O
has	O
to	O
be	O
the	O
TAG_END(0x01 )	O
,	O
and	O
finally	O
the	O
encapsulated	O
data	O
.	O
</s>
<s>
The	O
TZSP	B-Protocol
version	O
should	O
always	O
be	O
set	O
to	O
1	O
(	O
0x01	O
)	O
.	O
</s>
<s>
All	O
TZSP	B-Protocol
compatible	O
decoders	O
should	O
skip	O
unknown	O
tagged	O
fields	O
.	O
</s>
<s>
The	O
following	O
are	O
the	O
valid	O
TZSP	B-Protocol
tag	O
types	O
:	O
</s>
<s>
Following	O
this	O
tag	O
,	O
until	O
the	O
end	O
of	O
the	O
UDP	B-Protocol
packet	I-Protocol
,	O
is	O
the	O
encapsulated	O
frame	O
.	O
</s>
<s>
This	O
field	O
contains	O
the	O
data	O
rate	O
the	O
encapsulated	O
packet	B-Protocol
was	O
transmitted	O
at	O
.	O
</s>
<s>
The	O
following	O
are	O
old	O
constants	O
that	O
may	O
be	O
used	O
in	O
old	O
Prism-based	O
sensors	O
.	O
</s>
<s>
A	O
TZSP	B-Protocol
decoder	O
should	O
be	O
able	O
to	O
decode	O
them	O
but	O
they	O
should	O
NOT	O
be	O
used	O
in	O
a	O
TZSP	B-Protocol
encoder	O
:	O
</s>
<s>
This	O
is	O
the	O
time	O
the	O
sensor	O
MAC	B-Protocol
received	O
the	O
packet	B-Protocol
.	O
</s>
<s>
This	O
is	O
used	O
to	O
tell	O
if	O
the	O
packet	B-Protocol
was	O
sent	O
in	O
a	O
contention	B-General_Concept
free	I-General_Concept
period	I-General_Concept
.	O
</s>
<s>
This	O
is	O
used	O
to	O
tell	O
if	O
the	O
packet	B-Protocol
was	O
decrypted	O
.	O
</s>
<s>
This	O
is	O
used	O
to	O
tell	O
if	O
the	O
packet	B-Protocol
had	O
a	O
frame	B-Protocol
check	I-Protocol
sequence	I-Protocol
(	O
FCS	O
)	O
error	O
in	O
reception	O
.	O
</s>
<s>
A	O
one	O
(	O
0x01	O
)	O
specifies	O
that	O
there	O
was	O
an	O
FCS	O
error	O
on	O
the	O
decoding	O
of	O
the	O
packet	B-Protocol
.	O
</s>
<s>
This	O
is	O
the	O
channel	O
the	O
sensor	O
was	O
on	O
when	O
it	O
captured	O
the	O
packet	B-Protocol
.	O
</s>
<s>
It	O
is	O
NOT	O
the	O
channel	O
the	O
packet	B-Protocol
was	O
transmitted	O
on	O
.	O
</s>
<s>
This	O
is	O
a	O
monotonically	O
increasing	O
packet	B-Protocol
count	O
.	O
</s>
<s>
This	O
is	O
the	O
received	O
packet	B-Protocol
length	O
.	O
</s>
<s>
It	O
is	O
not	O
necessarily	O
the	O
size	O
of	O
the	O
transmitted	O
packet	B-Protocol
,	O
which	O
may	O
have	O
been	O
truncated	O
.	O
</s>
<s>
This	O
is	O
used	O
by	O
some	O
sensor	O
vendors	O
to	O
specify	O
the	O
serial	O
number	O
or	O
other	O
unique	O
identifier	O
for	O
the	O
sensor	O
or	O
AP	O
that	O
captured	O
the	O
packet	B-Protocol
.	O
</s>
<s>
The	O
encapsulated	O
packet	B-Protocol
should	O
be	O
stored	O
immediately	O
after	O
the	O
tagged	O
fields	O
.	O
</s>
<s>
This	O
encapsulated	O
packet	B-Protocol
may	O
be	O
truncated	O
from	O
the	O
original	O
full	O
packet	B-Protocol
size	O
and	O
does	O
not	O
need	O
to	O
be	O
the	O
same	O
size	O
as	O
specified	O
in	O
the	O
TAG_RX_FRAME_LENGTH	O
field	O
.	O
</s>
<s>
It	O
is	O
assumed	O
that	O
the	O
encapsulated	O
packet	B-Protocol
takes	O
up	O
the	O
entire	O
rest	O
of	O
the	O
UDP	B-Protocol
packet	I-Protocol
.	O
</s>
