diff -r 546428b33c04 src/applications/radvd/radvd.cc --- a/src/applications/radvd/radvd.cc Thu Dec 03 09:19:04 2009 +0100 +++ b/src/applications/radvd/radvd.cc Fri Dec 04 10:02:34 2009 +0100 @@ -208,6 +208,13 @@ raHdr.CalculatePseudoHeaderChecksum (src, dst, p->GetSize () + raHdr.GetSerializedSize (), 58 /* ICMPv6 */); p->AddHeader (raHdr); + /* Router advertisements MUST always have a ttl of 255 + * The ttl value should be set as a socket option, but this is not yet implemented + */ + SocketIpTtlTag ttl; + ttl.SetTtl(255); + p->AddPacketTag(ttl); + /* send RA */ NS_LOG_LOGIC ("Send RA"); m_socket->Send (p, 0);