VPP/API Concepts
From fd.io
General considerations
The VPP binary API is a message passing API. A message from a client must include the 'client_index', an opaque cookie identifying the sender, and a 'context' field to let the client match request with reply. There are three classes of methods supported by the API as outlined below.
- Request/Reply
- Dump/Detail
- Want
Issues
- Use of variable length arrays
- Pointers to shared memory blocks
- String versus binary arrrays
Proposed changes
- Make a common message header containing length, context and client_index