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) 2008-2009 Strasbourg University | 3 * Copyright (c) 2008-2009 Strasbourg University |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ApplicationContainer Install (NodeContainer c); | 70 ApplicationContainer Install (NodeContainer c); |
71 | 71 |
72 /** | 72 /** |
73 * \brief Set the out interface index. | 73 * \brief Set the out interface index. |
74 * This is to send to link-local (unicast or multicast) address | 74 * This is to send to link-local (unicast or multicast) address |
75 * when a node has multiple interfaces. | 75 * when a node has multiple interfaces. |
76 * \param ifIndex interface index | 76 * \param ifIndex interface index |
77 */ | 77 */ |
78 void SetIfIndex (uint32_t ifIndex); | 78 void SetIfIndex (uint32_t ifIndex); |
79 | 79 |
| 80 |
| 81 /** |
| 82 * \brief Set routers addresses for routing type 0. |
| 83 * \param routers routers addresses |
| 84 */ |
| 85 void SetRoutersAddress(std::vector<Ipv6Address> routers); |
| 86 ···· |
80 private: | 87 private: |
81 /** | 88 /** |
82 * \brief An object factory. | 89 * \brief An object factory. |
83 */ | 90 */ |
84 ObjectFactory m_factory; | 91 ObjectFactory m_factory; |
85 | 92 |
86 /** | 93 /** |
87 * \brief The local IPv6 address. | 94 * \brief The local IPv6 address. |
88 */ | 95 */ |
89 Ipv6Address m_localIp; | 96 Ipv6Address m_localIp; |
90 | 97 |
91 /** | 98 /** |
92 * \brief The remote IPv6 address. | 99 * \brief The remote IPv6 address. |
93 */ | 100 */ |
94 Ipv6Address m_remoteIp; | 101 Ipv6Address m_remoteIp; |
95 | 102 |
96 /** | 103 /** |
97 * \brief Out interface index.······················· | 104 * \brief Out interface index.······················· |
98 */ | 105 */ |
99 uint32_t m_ifIndex; | 106 uint32_t m_ifIndex; |
| 107 |
| 108 /** |
| 109 * \brief Routers addresses. |
| 110 */ |
| 111 std::vector<Ipv6Address> m_routers; |
100 }; | 112 }; |
101 | 113 |
102 } /* namespace ns3 */ | 114 } /* namespace ns3 */ |
103 | 115 |
104 #endif /* PING6_HELPER_H */ | 116 #endif /* PING6_HELPER_H */ |
105 | 117 |
OLD | NEW |