| 687 | // TODO(melvin): These ought to be members of Module |
| 688 | template <typename T> |
| 689 | static 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 | |
| 693 | template <typename T> |
| 694 | static inline T get_attr(Module *m, int attr_id, const bess::Packet *pkt) { |
nothing calls this directly
no test coverage detected