Using packet handlers for – Teledyne LeCroy IBTrainer - IBTrainer Users Manual User Manual
Page 52

Testing with the User Interface
Viewing the Results
52
CATC IBTrainer InfiniBand Exerciser, August 2002
– From the set mask value, no masking is performed on the packet.
– The set value matches the incoming packet’s payload. Because no
action has been set, the packet passes through.
This pattern matcher will then only match packets having the same
payload as the one described here.
Using Packet Handlers for Managing
Incoming Packets
With the software, you can write small programs that run when a new
packet is received. These scripts, called handlers, are TCL-based (Tools
Command Language). There is a default handler delivered with the
software which is called up when the IBTrainer receives a packet. This
handler (called global MAD handler) answers at queries included in
incoming SMP and GMP packets. Without this handler, the IBTrainer
would be silent when receiving incoming SMP packets.
The software provides a user interface for writing and managing your
own packet handlers. These handlers are TCL scripts and require a good
knowledge of the IBTrainer TCL commands. These commands are listed
in the API Reference of the IBTrainer. “How to Write Your Own
shows you how to write your own handlers.
The user interface provided for writing your own handlers also allows
you to manage your handlers.