uint64_t actf_pkt_seq_num(const actf_pkt *pkt)
Get the sequence number of a packet.
actf_pkt_prop
Packet properties.
Definition pkt.h:36
uint64_t actf_pkt_end_tstamp(const actf_pkt *pkt)
Get the timestamp of the end of a packet in cycles.
const actf_dstream_cls * actf_pkt_dstream_cls(const actf_pkt *pkt)
Get the data stream class of the packet.
const actf_fld * actf_pkt_fldn(const actf_pkt *pkt, const char *key, size_t len)
Same as actf_pkt_fld() but with an explicit key length.
const actf_fld * actf_pkt_fld(const actf_pkt *pkt, const char *key)
Search the top-level struct of all packet properties for a field with name key.
bool actf_pkt_has_disc_event_record_snapshot(const actf_pkt *pkt)
Check if the packet has a discarded event record snapshot.
struct actf_pkt actf_pkt
A packet.
Definition pkt.h:33
uint64_t actf_pkt_disc_event_record_snapshot(const actf_pkt *pkt)
Get the discarded event record snapshot of a packet.
uint64_t actf_pkt_dstream_id(const actf_pkt *pkt)
Get the data stream id of the packet.
bool actf_pkt_has_end_tstamp(const actf_pkt *pkt)
Check if the packet has an end timestamp.
int64_t actf_pkt_begin_tstamp_ns_from_origin(const actf_pkt *pkt)
Get the timestamp of the beginning of a packet in nanoseconds from origin.
const actf_fld * actf_pkt_prop_fldn(const actf_pkt *pkt, const char *key, size_t len, enum actf_pkt_prop prop)
Same as actf_pkt_prop_fld() but with an explicit key length.
uint64_t actf_pkt_dstream_cls_id(const actf_pkt *pkt)
Get the data stream class id of the packet.
const actf_fld * actf_pkt_prop_fld(const actf_pkt *pkt, const char *key, enum actf_pkt_prop prop)
Search the top-level struct of a packet property for a field with name key.
bool actf_pkt_has_seq_num(const actf_pkt *pkt)
Check if the packet has a sequence number.
uint64_t actf_pkt_begin_tstamp(const actf_pkt *pkt)
Get the timestamp of the beginning of a packet in cycles.
int64_t actf_pkt_end_tstamp_ns_from_origin(const actf_pkt *pkt)
Get the timestamp of the end of a packet in nanoseconds from origin.
bool actf_pkt_has_dstream_id(const actf_pkt *pkt)
Check if the packet has an explicit datastream id.
struct actf_fld actf_fld
A field.
Definition types.h:91