OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2016 Universita' di Firenze, Italy | 3 * Copyright (c) 2016 Universita' di Firenze, Italy |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 /** | 102 /** |
103 * \brief Get the route tag | 103 * \brief Get the route tag |
104 * \returns the route tag | 104 * \returns the route tag |
105 */ | 105 */ |
106 uint16_t GetRouteTag (void) const; | 106 uint16_t GetRouteTag (void) const; |
107 | 107 |
108 /** | 108 /** |
109 * \brief Set the route metric | 109 * \brief Set the route metric |
110 * \param routeMetric the route metric | 110 * \param routeMetric the route metric |
111 */ | 111 */ |
112 void SetRouteMetric (uint8_t routeMetric); | 112 void SetRouteMetric (uint32_t routeMetric); |
113 | 113 |
114 /** | 114 /** |
115 * \brief Get the route metric | 115 * \brief Get the route metric |
116 * \returns the route metric | 116 * \returns the route metric |
117 */ | 117 */ |
118 uint8_t GetRouteMetric (void) const; | 118 uint32_t GetRouteMetric (void) const; |
119 | 119 |
120 /** | 120 /** |
121 * \brief Set the route status | 121 * \brief Set the route status |
122 * \param status the route status | 122 * \param status the route status |
123 */ | 123 */ |
124 void SetRouteStatus (Status_e status); | 124 void SetRouteStatus (Status_e status); |
125 | 125 |
126 /** | 126 /** |
127 * \brief Get the route status | 127 * \brief Get the route status |
128 * \returns the route status | 128 * \returns the route status |
(...skipping 13 matching lines...) Expand all Loading... |
142 | 142 |
143 /** | 143 /** |
144 * \brief Get the route changed status | 144 * \brief Get the route changed status |
145 * | 145 * |
146 * \returns true if route is changed | 146 * \returns true if route is changed |
147 */ | 147 */ |
148 bool IsRouteChanged (void) const; | 148 bool IsRouteChanged (void) const; |
149 | 149 |
150 private: | 150 private: |
151 uint16_t m_tag; //!< route tag | 151 uint16_t m_tag; //!< route tag |
152 uint8_t m_metric; //!< route metric | 152 uint32_t m_metric; //!< route metric |
153 Status_e m_status; //!< route status | 153 Status_e m_status; //!< route status |
154 bool m_changed; //!< route has been updated | 154 bool m_changed; //!< route has been updated |
155 }; | 155 }; |
156 | 156 |
157 /** | 157 /** |
158 * \brief Stream insertion operator. | 158 * \brief Stream insertion operator. |
159 * | 159 * |
160 * \param os the reference to the output stream | 160 * \param os the reference to the output stream |
161 * \param route the Ipv4 routing table entry | 161 * \param route the Ipv4 routing table entry |
162 * \returns the reference to the output stream | 162 * \returns the reference to the output stream |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 EventId m_nextTriggeredUpdate; //!< Next Triggered Update event | 396 EventId m_nextTriggeredUpdate; //!< Next Triggered Update event |
397 | 397 |
398 Ptr<UniformRandomVariable> m_rng; //!< Rng stream. | 398 Ptr<UniformRandomVariable> m_rng; //!< Rng stream. |
399 | 399 |
400 std::set<uint32_t> m_interfaceExclusions; //!< Set of excluded interfaces | 400 std::set<uint32_t> m_interfaceExclusions; //!< Set of excluded interfaces |
401 std::map<uint32_t, uint8_t> m_interfaceMetrics; //!< Map of interface metrics | 401 std::map<uint32_t, uint8_t> m_interfaceMetrics; //!< Map of interface metrics |
402 | 402 |
403 SplitHorizonType_e m_splitHorizonStrategy; //!< Split Horizon strategy | 403 SplitHorizonType_e m_splitHorizonStrategy; //!< Split Horizon strategy |
404 | 404 |
405 bool m_initialized; //!< flag to allow socket's late-creation. | 405 bool m_initialized; //!< flag to allow socket's late-creation. |
406 uint32_t m_linkDown; //!< Link down value. | 406 uint8_t m_linkDown; //!< Link down value. |
407 }; | 407 }; |
408 | 408 |
409 } // namespace ns3 | 409 } // namespace ns3 |
410 #endif /* RIP_H */ | 410 #endif /* RIP_H */ |
411 | 411 |
OLD | NEW |