|
|
| 486 |
NS_LOG_FUNCTION (this << i); |
486 |
NS_LOG_FUNCTION (this << i); |
| 487 |
Ptr<Ipv6Interface> interface = GetInterface (i); |
487 |
Ptr<Ipv6Interface> interface = GetInterface (i); |
| 488 |
|
488 |
|
| 489 |
interface->SetUp (); |
489 |
// RFC 2460, Section 5, pg. 24: |
|
|
490 |
// IPv6 requires that every link in the internet have an MTU of 1280 |
| 491 |
// octets or greater. On any link that cannot convey a 1280-octet |
| 492 |
// packet in one piece, link-specific fragmentation and reassembly must |
| 493 |
// be provided at a layer below IPv6. |
| 494 |
if (interface->GetDevice ()->GetMtu () >= 1280) |
| 495 |
{ |
| 496 |
interface->SetUp (); |
| 490 |
|
497 |
|
| 491 |
if (m_routingProtocol != 0) |
498 |
if (m_routingProtocol != 0) |
|
|
499 |
{ |
| 500 |
m_routingProtocol->NotifyInterfaceUp (i); |
| 501 |
} |
| 502 |
} |
| 503 |
else |
| 492 |
{ |
504 |
{ |
| 493 |
m_routingProtocol->NotifyInterfaceUp (i); |
505 |
NS_LOG_LOGIC ("Interface " << int(i) << " is set to be down for IPv6. Reason: not respecting minimum IPv6 MTU (1280 octects)"); |
| 494 |
} |
506 |
} |
| 495 |
} |
507 |
} |
| 496 |
|
508 |
|