bmv2
Designing your own switch target with bmv2
|
Public Member Functions | |
bool | contains_field (header_id_t header, int field_offset) const |
Corresponds to a field_list
object in P4 v1.0.2. Some targets -this is the case for the simple switch target- need to access FieldList instances (using Context::get_field_list() or Switch::get_field_list()). The simple switch target uses this to implement metadata carry when cloning a packet.
|
inline |
Returns true if the FieldList contains the given field, identified by the header id and the offset of the field in the header