[Ns-developers] Csma, ethernet length field, NSC and the linkmtu...
Florian Westphal
fw at strlen.de
Wed Jul 23 17:57:48 PDT 2008
craigdo at ee.washington.edu <craigdo at ee.washington.edu> wrote:
> case LLC:
> {
> NS_LOG_LOGIC ("Encapsulating packet as LLC (length
> interpretation)");
>
> LlcSnapHeader llc;
> llc.SetType (protocolNumber);
> p->AddHeader (llc);
> //
> // This corresponds to the length interpretation of the lengthType field,
> // but with an LLC/SNAP header added to the payload.
> //
> lengthType = llc.GetSerializedSize () + p->GetSize ();
The llc header has already been added to the packet here, so its
size is already accounted for by p->GetSize(), no?
Florian
More information about the Ns-developers
mailing list