beautypg.com

Example – Teledyne LeCroy FireInspector - File Based Decoding User Manual

Page 41

background image

35

CATC S

CRIPTING

L

ANGUAGE

1.0

C

HAPTER

10

Reference Manual

Transaction and Packet Context Fields

Example

The following example is taken from the file IPProtocol.dec, which is included with
the FireInspector installation.

if ( in.Payload == null )

return Reject();

if ( in.Version != 4 )

return Reject();


...

if ( out.Identification == null )
{

out.Identification = in.Identification;

}
else
{

if ( out.Identification != in.Identification )
{

return Reject();

}

}