|
|
| 159 |
/** |
159 |
/** |
| 160 |
* \param interface Interface number of an Ipv4 interface |
160 |
* \param interface Interface number of an Ipv4 interface |
| 161 |
* \param address Ipv4InterfaceAddress address to associate with the underlying Ipv4 interface |
161 |
* \param address Ipv4InterfaceAddress address to associate with the underlying Ipv4 interface |
| 162 |
* \returns The address index of the newly-added address |
162 |
* \returns true if the operation succeeded |
| 163 |
*/ |
163 |
*/ |
| 164 |
virtual uint32_t AddAddress (uint32_t interface, Ipv4InterfaceAddress address) = 0; |
164 |
virtual bool AddAddress (uint32_t interface, Ipv4InterfaceAddress address) = 0; |
| 165 |
|
165 |
|
| 166 |
/** |
166 |
/** |
| 167 |
* \param interface Interface number of an Ipv4 interface |
167 |
* \param interface Interface number of an Ipv4 interface |
|
|
| 170 |
virtual uint32_t GetNAddresses (uint32_t interface) const = 0; |
170 |
virtual uint32_t GetNAddresses (uint32_t interface) const = 0; |
| 171 |
|
171 |
|
| 172 |
/** |
172 |
/** |
|
|
173 |
* Because addresses can be removed, the addressIndex is not guaranteed |
| 174 |
* to be static across calls to this method. |
| 175 |
* |
| 173 |
* \param interface Interface number of an Ipv4 interface |
176 |
* \param interface Interface number of an Ipv4 interface |
| 174 |
* \param addressIndex index of Ipv4InterfaceAddress |
177 |
* \param addressIndex index of Ipv4InterfaceAddress |
| 175 |
* \returns the Ipv4InterfaceAddress associated to the interface and addresIndex |
178 |
* \returns the Ipv4InterfaceAddress associated to the interface and addresIndex |
| 176 |
*/ |
179 |
*/ |
| 177 |
virtual Ipv4InterfaceAddress GetAddress (uint32_t interface, uint32_t addressIndex) const = 0; |
180 |
virtual Ipv4InterfaceAddress GetAddress (uint32_t interface, uint32_t addressIndex) const = 0; |
|
|
181 |
|
| 182 |
/** |
| 183 |
* Remove the address at addressIndex on named interface. The addressIndex |
| 184 |
* for all higher indices will decrement by one after this method is called; |
| 185 |
* so, for example, to remove 5 addresses from an interface i, one could |
| 186 |
* call RemoveAddress (i, 0); 5 times. |
| 187 |
* |
| 188 |
* \param interface Interface number of an Ipv4 interface |
| 189 |
* \param addressIndex index of Ipv4InterfaceAddress to remove |
| 190 |
* \returns true if the operation succeeded |
| 191 |
*/ |
| 192 |
virtual bool RemoveAddress (uint32_t interface, uint32_t addressIndex) = 0; |
| 178 |
|
193 |
|
| 179 |
/** |
194 |
/** |
| 180 |
* \param interface The interface number of an Ipv4 interface |
195 |
* \param interface The interface number of an Ipv4 interface |