MCPcopy Create free account
hub / github.com/NetSys/bess / ptr_attr

Function ptr_attr

core/module.h:689–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687// TODO(melvin): These ought to be members of Module
688template <typename T>
689static inline T *ptr_attr(Module *m, int attr_id, bess::Packet *pkt) {
690 return ptr_attr_with_offset<T>(m->attr_offset(attr_id), pkt);
691}
692
693template <typename T>
694static inline T get_attr(Module *m, int attr_id, const bess::Packet *pkt) {

Callers

nothing calls this directly

Calls 1

attr_offsetMethod · 0.80

Tested by

no test coverage detected