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

(-)a/src/routing/global-routing/global-router-interface.cc (-5 / +7 lines)
 Lines 605-623   GlobalRouter::DiscoverLSAs (void) Link Here 
605
      // associated with a bridge.  We are only going to involve devices with 
605
      // associated with a bridge.  We are only going to involve devices with 
606
      // IP addresses in routing.
606
      // IP addresses in routing.
607
      //
607
      //
608
      bool isIp = false;
608
      bool isForwarding = false;
609
      for (uint32_t j = 0; j < ipv4Local->GetNInterfaces (); ++j )
609
      for (uint32_t j = 0; j < ipv4Local->GetNInterfaces (); ++j )
610
        {
610
        {
611
          if (ipv4Local->GetNetDevice (j) == ndLocal && ipv4Local->IsUp (j)) 
611
          if (ipv4Local->GetNetDevice (j) == ndLocal && ipv4Local->IsUp (j) &&
612
              ipv4Local->IsForwarding (j)) 
612
            {
613
            {
613
              isIp = true;
614
              isForwarding = true;
614
              break;
615
              break;
615
            }
616
            }
616
        }
617
        }
617
618
618
      if (!isIp)
619
      if (!isForwarding)
619
        {
620
        {
620
          NS_LOG_LOGIC ("Net device " << ndLocal << "has no IP interface, skipping");
621
          NS_LOG_LOGIC ("Net device " << ndLocal << "has no IP interface or is not enabled for forwarding, skipping");
621
          continue;
622
          continue;
622
        }
623
        }
623
624
 Lines 630-635   GlobalRouter::DiscoverLSAs (void) Link Here 
630
      // If the device is a point to point link, we treat it separately.  In
631
      // If the device is a point to point link, we treat it separately.  In
631
      // that case, there may be zero, one, or two link records added.
632
      // that case, there may be zero, one, or two link records added.
632
      //
633
      //
634
633
      if (ndLocal->IsBroadcast () && !ndLocal->IsPointToPoint () )
635
      if (ndLocal->IsBroadcast () && !ndLocal->IsPointToPoint () )
634
        {
636
        {
635
          NS_LOG_LOGIC ("Broadcast link");
637
          NS_LOG_LOGIC ("Broadcast link");

Return to bug 63