equal
deleted
inserted
replaced
37 void Ipv6Route::SetDestination (Ipv6Address dest) |
37 void Ipv6Route::SetDestination (Ipv6Address dest) |
38 { |
38 { |
39 m_dest = dest; |
39 m_dest = dest; |
40 } |
40 } |
41 |
41 |
42 Ipv6Address |
42 Ipv6Address Ipv6Route::GetDestination () const |
43 Ipv6Route::GetDestination () const |
|
44 { |
43 { |
45 return m_dest; |
44 return m_dest; |
46 } |
45 } |
47 |
46 |
48 void Ipv6Route::SetSource (Ipv6Address src) |
47 void Ipv6Route::SetSource (Ipv6Address src) |
75 return m_outputDevice; |
74 return m_outputDevice; |
76 } |
75 } |
77 |
76 |
78 std::ostream& operator<< (std::ostream& os, Ipv6Route const& route) |
77 std::ostream& operator<< (std::ostream& os, Ipv6Route const& route) |
79 { |
78 { |
80 os << "source=" << route.GetSource () << " dest="<< route.GetDestination () <<" gw=" << route.GetGateway (); |
79 os << "source=" << route.GetSource () << " dest="<< route.GetDestination () <<" gw=" << route.GetGateway (); |
81 return os; |
80 return os; |
82 } |
81 } |
83 |
82 |
84 Ipv6MulticastRoute::Ipv6MulticastRoute () |
83 Ipv6MulticastRoute::Ipv6MulticastRoute () |
85 { |
84 { |
86 uint32_t initial_ttl = MAX_TTL; |
85 uint32_t initial_ttl = MAX_TTL; |
87 |
86 |
88 /* Initialize array to MAX_TTL, which means that all interfaces are "off" */ |
87 /* Initialize array to MAX_TTL, which means that all interfaces are "off" */ |
89 for (uint32_t i = 0; i < MAX_INTERFACES; i++) |
88 for (uint32_t i = 0; i < MAX_INTERFACES; i++) |
90 { |
89 { |
91 m_ttls.push_back (initial_ttl); |
90 m_ttls.push_back (initial_ttl); |
92 } |
91 } |
93 } |
92 } |
94 |
93 |
95 Ipv6MulticastRoute::~Ipv6MulticastRoute () |
94 Ipv6MulticastRoute::~Ipv6MulticastRoute () |
96 { |
95 { |
97 } |
96 } |
136 return m_ttls[oif]; |
135 return m_ttls[oif]; |
137 } |
136 } |
138 |
137 |
139 std::ostream& operator<< (std::ostream& os, Ipv6MulticastRoute const& route) |
138 std::ostream& operator<< (std::ostream& os, Ipv6MulticastRoute const& route) |
140 { |
139 { |
141 os << "origin=" << route.GetOrigin () << " group="<< route.GetGroup () <<" parent=" << route.GetParent (); |
140 os << "origin=" << route.GetOrigin () << " group="<< route.GetGroup () <<" parent=" << route.GetParent (); |
142 return os; |
141 return os; |
143 } |
142 } |
144 |
143 |
145 } /* namespace ns3 */ |
144 } /* namespace ns3 */ |
146 |
145 |