|
|
| 625 |
// |
625 |
// |
| 626 |
int32_t len = -1; |
626 |
int32_t len = -1; |
| 627 |
|
627 |
|
|
|
628 |
Ptr<RealtimeSimulatorImpl> simulatorImpl = DynamicCast<RealtimeSimulatorImpl> (Simulator::GetImplementation ()); |
| 629 |
|
| 628 |
for (;;) |
630 |
for (;;) |
| 629 |
{ |
631 |
{ |
| 630 |
uint32_t bufferSize = 65536; |
632 |
uint32_t bufferSize = 65536; |
|
|
| 643 |
|
645 |
|
| 644 |
NS_LOG_INFO ("TapBridge::ReadThread(): Received packet on node " << m_node->GetId ()); |
646 |
NS_LOG_INFO ("TapBridge::ReadThread(): Received packet on node " << m_node->GetId ()); |
| 645 |
NS_LOG_INFO ("TapBridge::ReadThread(): Scheduling handler"); |
647 |
NS_LOG_INFO ("TapBridge::ReadThread(): Scheduling handler"); |
| 646 |
DynamicCast<RealtimeSimulatorImpl> (Simulator::GetImplementation ())->ScheduleRealtimeNow ( |
648 |
simulatorImpl->ScheduleRealtimeNow (MakeEvent (&TapBridge::ForwardToBridgedDevice, this, buf, len)); |
| 647 |
MakeEvent (&TapBridge::ForwardToBridgedDevice, this, buf, len)); |
|
|
| 648 |
buf = 0; |
649 |
buf = 0; |
| 649 |
} |
650 |
} |
| 650 |
} |
651 |
} |