Documentation ¶
Overview ¶
raw-data is a basic example showing how to create a memif interface, handle events through callbacks and perform Rx/Tx of raw data. Before handling an actual packets it is important to understand the skeleton of libmemif-based applications.
Since VPP expects proper packet data, it is not very useful to connect raw-data example with VPP, even though it will work, since all the received data will get dropped on the VPP side.
To create a connection of two raw-data instances, run two processes concurrently:
- master memif: $ ./raw-data
- slave memif: $ ./raw-data --slave
Every 3 seconds both sides send 3 raw-data packets to the opposite end through each queue. The received packets are printed to stdout.
Stop an instance of raw-data with an interrupt signal.