[Ns-developers] ns-3.6 Daily Bug Status for Wednesday, October 7, 2009
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Thu Oct 8 06:43:30 PDT 2009
On Thu, 2009-10-08 at 15:37 +0200, Sebastien Vincent wrote:
> OK, I have found a different way to remove this warning:
>
> diff -r 2b142c3fb89b src/internet-stack/icmpv6-l4-protocol.cc
> --- a/src/internet-stack/icmpv6-l4-protocol.cc Thu Oct 08 07:10:54
> 2009 +0200
> +++ b/src/internet-stack/icmpv6-l4-protocol.cc Thu Oct 08 15:28:18
> 2009 +0200
> @@ -962,7 +962,8 @@
>
> if ((redirectedPacketSize % 8) != 0)
> {
> - redirectedPacket->AddPaddingAtEnd (8 - (redirectedPacketSize % 8));
> + Ptr<Packet> pad = Create<Packet>(8 - (redirectedPacketSize % 8));
> + redirectedPacket->AddAtEnd (pad);
> }
good for me: +1
Mathieu
More information about the Ns-developers
mailing list