bmv2
Designing your own switch target with bmv2
|
Inherits bm::ActionPrimitive_.
Protected Member Functions | |
Field & | get_field (const std::string &name) |
Header & | get_header (const std::string &name) |
Returns a reference to the Header with name name . More... | |
Packet & | get_packet () |
This acts as the base class for all target-specific action primitives. It provides some useful functionality, like access to a header by name, or access to the Packet on which the primitive is executed.
|
inlineprotected |
Returns a reference to the Field with name name
. name
must follow the usual format "hdrA.f1"
.
|
inlineprotected |
Returns a reference to the Header with name name
.
|
inlineprotected |
Returns a reference to the Packet instance on which the action primitive is being executed.