prefix_ void senf::MIHPacketType::finalize(packet p)
{
- p->src_mihfId().finalizeLength();
- p->dst_mihfId().finalizeLength();
+ p->src_mihfId().finalize();
+ p->dst_mihfId().finalize();
p->payloadLength_() << p.size() - 8;
p->messageId() << key(p.next(nothrow));
}
os << "MIH Payload (service specific TLVs):\n";
typedef parser::tlvList_t::container tlvListContainer_t;
tlvListContainer_t tlvListContainer (p->tlvList());
- for (tlvListContainer_t::iterator i = tlvListContainer.begin(); i != tlvListContainer.end(); ++i)
+ for (tlvListContainer_t::const_iterator i = tlvListContainer.begin(); i != tlvListContainer.end(); ++i)
i->dump( os);
}
typedef parser::tlvList_t::container tlvContainer_t;
tlvContainer_t tlvs (p->tlvList() );
for (tlvContainer_t::iterator i (tlvs.begin()); i != tlvs.end(); ++i)
- i->finalizeLength();
+ i->finalize();
}