equal
deleted
inserted
replaced
586 Icmpv6Echo req (1); |
586 Icmpv6Echo req (1); |
587 |
587 |
588 req.SetId (id); |
588 req.SetId (id); |
589 req.SetSeq (seq); |
589 req.SetSeq (seq); |
590 |
590 |
|
591 req.CalculatePseudoHeaderChecksum (src, dst, p->GetSize () + req.GetSerializedSize (), PROT_NUMBER); |
591 p->AddHeader (req); |
592 p->AddHeader (req); |
|
593 |
|
594 ipHeader.SetSourceAddress (src); |
|
595 ipHeader.SetDestinationAddress (dst); |
|
596 ipHeader.SetNextHeader (PROT_NUMBER); |
|
597 ipHeader.SetPayloadLength (p->GetSize ()); |
|
598 ipHeader.SetHopLimit (255); |
|
599 |
|
600 p->AddHeader (ipHeader); |
592 |
601 |
593 return p; |
602 return p; |
594 } |
603 } |
595 |
604 |
596 void Icmpv6L4Protocol::HandleNA (Ptr<Packet> packet, Ipv6Address const &src, Ipv6Address const &dst, Ptr<Ipv6Interface> interface) |
605 void Icmpv6L4Protocol::HandleNA (Ptr<Packet> packet, Ipv6Address const &src, Ipv6Address const &dst, Ptr<Ipv6Interface> interface) |