diff --git a/src/routing/global-routing/global-route-manager-impl.cc b/src/routing/global-routing/global-route-manager-impl.cc index 39c55b435..9051a640b 100644 --- a/src/routing/global-routing/global-route-manager-impl.cc +++ b/src/routing/global-routing/global-route-manager-impl.cc @@ -222,53 +222,6 @@ SPFVertex::GetDistanceFromRoot (void) const return m_distanceFromRoot; } -void -SPFVertex::SetOutgoingInterfaceId (int32_t id) -{ - NS_LOG_FUNCTION (id); - - // always maintain only one output interface index when using setter/getter methods - m_rootOif = id; -} - -uint32_t -SPFVertex::GetOutgoingInterfaceId (void) const -{ - NS_LOG_FUNCTION_NOARGS (); - return m_rootOif; -} - -//void -//SPFVertex::MergeOutgoingInterfaceId (const SPFVertex* v) -//{ -// NS_LOG_FUNCTION (v); -// -// NS_LOG_LOGIC ("Before merge, list of root out-going interfaces = " << m_rootOif); -// // combine the two lists first, and then remove any duplicated after -// m_rootOif.insert (m_rootOif.end (), -// v->m_rootOif.begin (), v->m_rootOif.end ()); -// // remove duplication -// m_rootOif.sort (); -// m_rootOif.unique (); -// NS_LOG_LOGIC ("After merge, list of root out-going interfaces = " << m_rootOif); -//} - - void -SPFVertex::SetNextHop (Ipv4Address nextHop) -{ - NS_LOG_FUNCTION (nextHop); - - // always maintain only one nexthop when using setter/getter methods - m_nextHop = nextHop; -} - - Ipv4Address -SPFVertex::GetNextHop (void) const -{ - NS_LOG_FUNCTION_NOARGS (); - return m_nextHop; -} - void SPFVertex::SetParent (SPFVertex* parent) { diff --git a/src/routing/global-routing/global-route-manager-impl.h b/src/routing/global-routing/global-route-manager-impl.h index 4befa1d6a..46aebbe52 100644 --- a/src/routing/global-routing/global-route-manager-impl.h +++ b/src/routing/global-routing/global-route-manager-impl.h @@ -255,183 +255,6 @@ public: */ void SetDistanceFromRoot (uint32_t distance); -/** - * \deprecated Use GetRootExitDirection instead - * - * @brief Get the interface ID that should be used to begin forwarding packets - * from the root SPFVertex to "this" SPFVertex. - * @internal - * - * Each router node in the simulation is associated with an SPFVertex object. - * When calculating routes, each of these routers is, in turn, chosen as the - * "root" of the calculation and routes to all of the other routers are - * eventually saved in the routing tables of each of the chosen nodes. - * - * The "Root" vertex is then the SPFVertex representing the router that is - * having its routing tables set. The "this" SPFVertex is the vertex that - * represents the host or network to which a route is being calculated from - * the root. The outgoing interface that we're asking for is the interface - * index on the root node that should be used to start packets along the - * path to "this" vertex. - * - * When initializing the root SPFVertex, the interface ID is determined by - * examining the Global Router Link Records of the Link State Advertisement - * generated by the root node's GlobalRouter. These interfaces are used to - * forward packets off of the root's network down those links. As other - * vertices are discovered which are further away from the root, they will - * be accessible down one of the paths begun by a Global Router Link Record. - * - * To forward packets to these hosts or networks, the root node must begin - * the forwarding process by sending the packets to the interface of that - * first hop. This means that the first hop address and interface ID must - * be the same for all downstream SPFVertices. We call this "inheriting" - * the interface and next hop. - * - * In this method, the root node is asking, "which of my local interfaces - * should I use to get a packet to the network or host represented by 'this' - * SPFVertex." - * - * @see GlobalRouter - * @see GlobalRoutingLSA - * @see GlobalRoutingLinkRecord - * @returns The interface index to use when forwarding packets to the host - * or network represented by "this" SPFVertex. - */ - uint32_t GetOutgoingInterfaceId (void) const NS_DEPRECATED; - -/** - * \deprecated Use SetRootExitDirection instead - * - * @brief Set the interface ID that should be used to begin forwarding packets - * from the root SPFVertex to "this" SPFVertex. - * @internal - * - * Each router node in the simulation is associated with an SPFVertex object. - * When calculating routes, each of these routers is, in turn, chosen as the - * "root" of the calculation and routes to all of the other routers are - * eventually saved in the routing tables of each of the chosen nodes. - * - * The "Root" vertex is then the SPFVertex representing the router that is - * having its routing tables set. The "this" SPFVertex is the vertex that - * represents the host or network to which a route is being calculated from - * the root. The outgoing interface that we're asking for is the interface - * index on the root node that should be used to start packets along the - * path to "this" vertex. - * - * When initializing the root SPFVertex, the interface ID is determined by - * examining the Global Router Link Records of the Link State Advertisement - * generated by the root node's GlobalRouter. These interfaces are used to - * forward packets off of the root's network down those links. As other - * vertices are discovered which are further away from the root, they will - * be accessible down one of the paths begun by a Global Router Link Record. - * - * To forward packets to these hosts or networks, the root node must begin - * the forwarding process by sending the packets to the interface of that - * first hop. This means that the first hop address and interface ID must - * be the same for all downstream SPFVertices. We call this "inheriting" - * the interface and next hop. - * - * In this method, we are letting the root node know which of its local - * interfaces it should use to get a packet to the network or host represented - * by "this" SPFVertex. - * - * @see GlobalRouter - * @see GlobalRoutingLSA - * @see GlobalRoutingLinkRecord - * @param id The interface index to use when forwarding packets to the host or - * network represented by "this" SPFVertex. - */ - void SetOutgoingInterfaceId (int32_t id) NS_DEPRECATED; - -/** - * \deprecated Use GetRootExitDirection instead - * - * @brief Get the IP address that should be used to begin forwarding packets - * from the root SPFVertex to "this" SPFVertex. - * @internal - * - * Each router node in the simulation is associated with an SPFVertex object. - * When calculating routes, each of these routers is, in turn, chosen as the - * "root" of the calculation and routes to all of the other routers are - * eventually saved in the routing tables of each of the chosen nodes. - * - * The "Root" vertex is then the SPFVertex representing the router that is - * having its routing tables set. The "this" SPFVertex is the vertex that - * represents the host or network to which a route is being calculated from - * the root. The IP address that we're asking for is the address on the - * remote side of a link off of the root node that should be used as the - * destination for packets along the path to "this" vertex. - * - * When initializing the root SPFVertex, the IP address used when forwarding - * packets is determined by examining the Global Router Link Records of the - * Link State Advertisement generated by the root node's GlobalRouter. This - * address is used to forward packets off of the root's network down those - * links. As other vertices / nodes are discovered which are further away - * from the root, they will be accessible down one of the paths via a link - * described by one of these Global Router Link Records. - * - * To forward packets to these hosts or networks, the root node must begin - * the forwarding process by sending the packets to a first hop router down - * an interface. This means that the first hop address and interface ID must - * be the same for all downstream SPFVertices. We call this "inheriting" - * the interface and next hop. - * - * In this method, the root node is asking, "which router should I send a - * packet to in order to get that packet to the network or host represented - * by 'this' SPFVertex." - * - * @see GlobalRouter - * @see GlobalRoutingLSA - * @see GlobalRoutingLinkRecord - * @returns The IP address to use when forwarding packets to the host - * or network represented by "this" SPFVertex. - */ - Ipv4Address GetNextHop (void) const NS_DEPRECATED; - -/** - * \deprecated Use SetRootExitDirection instead - * - * @brief Set the IP address that should be used to begin forwarding packets - * from the root SPFVertex to "this" SPFVertex. - * @internal - * - * Each router node in the simulation is associated with an SPFVertex object. - * When calculating routes, each of these routers is, in turn, chosen as the - * "root" of the calculation and routes to all of the other routers are - * eventually saved in the routing tables of each of the chosen nodes. - * - * The "Root" vertex is then the SPFVertex representing the router that is - * having its routing tables set. The "this" SPFVertex is the vertex that - * represents the host or network to which a route is being calculated from - * the root. The IP address that we're asking for is the address on the - * remote side of a link off of the root node that should be used as the - * destination for packets along the path to "this" vertex. - * - * When initializing the root SPFVertex, the IP address used when forwarding - * packets is determined by examining the Global Router Link Records of the - * Link State Advertisement generated by the root node's GlobalRouter. This - * address is used to forward packets off of the root's network down those - * links. As other vertices / nodes are discovered which are further away - * from the root, they will be accessible down one of the paths via a link - * described by one of these Global Router Link Records. - * - * To forward packets to these hosts or networks, the root node must begin - * the forwarding process by sending the packets to a first hop router down - * an interface. This means that the first hop address and interface ID must - * be the same for all downstream SPFVertices. We call this "inheriting" - * the interface and next hop. - * - * In this method we are telling the root node which router it should send - * should I send a packet to in order to get that packet to the network or - * host represented by 'this' SPFVertex." - * - * @see GlobalRouter - * @see GlobalRoutingLSA - * @see GlobalRoutingLinkRecord - * @param nextHop The IP address to use when forwarding packets to the host - * or network represented by "this" SPFVertex. - */ - void SetNextHop (Ipv4Address nextHop) NS_DEPRECATED; /** * @brief Set the IP address and outgoing interface index that should be used * to begin forwarding packets from the root SPFVertex to "this" SPFVertex.