raw-data

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL