bmv2
Designing your own switch target with bmv2
Public Member Functions | List of all members
bm::FieldList Class Reference

Public Member Functions

bool contains_field (header_id_t header, int field_offset) const
 

Detailed Description

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.

Member Function Documentation

◆ contains_field()

bool bm::FieldList::contains_field ( header_id_t  header,
int  field_offset 
) const
inline

Returns true if the FieldList contains the given field, identified by the header id and the offset of the field in the header


The documentation for this class was generated from the following file: