|
1743 |
std::map<Ipv4Address, uint32_t> unreachable; |
1743 |
std::map<Ipv4Address, uint32_t> unreachable; |
1744 |
|
1744 |
|
1745 |
RoutingTableEntry toNextHop; //OBJECT OF ROUTING TABLE |
1745 |
RoutingTableEntry toNextHop; //OBJECT OF ROUTING TABLE |
1746 |
rerrHeader.SetDestCount(0); |
|
|
1747 |
|
1746 |
|
1748 |
if (!m_routingTable.LookupRoute (nextHop, toNextHop)) /** |
1747 |
if (!m_routingTable.LookupRoute (nextHop, toNextHop)) /** |
1749 |
* Lookup routing table entry with destination address dst |
1748 |
* Lookup routing table entry with destination address dst |
|
1752 |
* \return true on success |
1751 |
* \return true on success |
1753 |
*/ |
1752 |
*/ |
1754 |
return; |
1753 |
return; |
1755 |
if (toNextHop.GetValidSeqNo ()) |
1754 |
|
1756 |
toNextHop.SetSeqNo(toNextHop.GetSeqNo()+1); |
|
|
1757 |
|
1758 |
|
1759 |
|
1760 |
toNextHop.GetPrecursors (precursors); /* Inserts precursors in vector prec if they does not yet exist in vector*/ |
1755 |
toNextHop.GetPrecursors (precursors); /* Inserts precursors in vector prec if they does not yet exist in vector*/ |
1761 |
rerrHeader.AddUnDestination (nextHop, toNextHop.GetSeqNo ()); /** |
1756 |
rerrHeader.AddUnDestination (nextHop, toNextHop.GetSeqNo ()); /** |
1762 |
* Add unreachable node address and its sequence number in RERR header |
1757 |
* Add unreachable node address and its sequence number in RERR header |