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

Function get_attr

core/module.h:694–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692
693template <typename T>
694static inline T get_attr(Module *m, int attr_id, const bess::Packet *pkt) {
695 return get_attr_with_offset<T>(m->attr_offset(attr_id), pkt);
696}
697
698template <typename T>
699static inline void set_attr(Module *m, int attr_id, bess::Packet *pkt, T val) {

Callers

nothing calls this directly

Calls 1

attr_offsetMethod · 0.80

Tested by

no test coverage detected