30 auto mark = this->getTag<lp::CongestionMarkTag>();
32 if (mark ==
nullptr) {
44 auto tag = make_shared<lp::CongestionMarkTag>(mark);
45 this->
setTag(std::move(tag));
48 this->removeTag<lp::CongestionMarkTag>();
void setCongestionMark(uint64_t mark)
Set the CongestionMark tag to the specified value.
uint64_t getCongestionMark() const
Get the value of the CongestionMark tag.
void setTag(shared_ptr< T > tag) const
Set (add or replace) a tag item.