View | Details | Raw Unified | Return to bug 759
Collapse All | Expand All

(-)a/src/internet-stack/ipv6-l3-protocol.cc (-1 / +7 lines)
 Lines 635-641    Link Here 
635
635
636
  hdr = BuildHeader (source, destination, protocol, packet->GetSize (), ttl);
636
  hdr = BuildHeader (source, destination, protocol, packet->GetSize (), ttl);
637
637
638
  if (!source.IsAny ())
638
  //for link-local traffic, we need to determine the interface
639
  if (source.IsLinkLocal() ||
640
      destination.IsLinkLocal() ||
641
      destination.IsAllNodesMulticast() ||
642
      destination.IsAllRoutersMulticast() ||
643
      destination.IsAllHostsMulticast() ||
644
      destination.IsSolicitedMulticast())
639
  {
645
  {
640
    int32_t index = GetInterfaceForAddress (source);
646
    int32_t index = GetInterfaceForAddress (source);
641
    NS_ASSERT (index >= 0);
647
    NS_ASSERT (index >= 0);

Return to bug 759