|
|
| 155 |
* allow the net device to perform the actual construction of the multicast |
155 |
* allow the net device to perform the actual construction of the multicast |
| 156 |
* address. Use of this method is discouraged unless you have a good reason |
156 |
* address. Use of this method is discouraged unless you have a good reason |
| 157 |
* to perform a custom mapping. You should prefer |
157 |
* to perform a custom mapping. You should prefer |
| 158 |
* NetDevice::MakeMulticastAddress which will do the RFC-specified mapping |
158 |
* NetDevice::GetMulticast which will do the RFC-specified mapping |
| 159 |
* for the net device in question. |
159 |
* for the net device in question. |
| 160 |
* |
160 |
* |
| 161 |
* \return The multicast address supported by this net device. |
161 |
* \return The multicast address supported by this net device. |
| 162 |
* |
162 |
* |
| 163 |
* \warning Calling this method is invalid if IsMulticast returns not true. |
163 |
* \warning Calling this method is invalid if IsMulticast returns not true. |
| 164 |
* The method NS_ASSERTs if the device is not a multicast device. |
164 |
* The method NS_ASSERTs if the device is not a multicast device. |
| 165 |
* \see NetDevice::MakeMulticastAddress |
165 |
* \see NetDevice::GetMulticast |
| 166 |
*/ |
166 |
*/ |
| 167 |
virtual Address GetMulticast (void) const = 0; |
167 |
virtual Address GetMulticast (void) const = 0; |
| 168 |
|
168 |
|
|
|
| 179 |
* encapsulated in an abstract Address to avoid dependencies on the exact |
179 |
* encapsulated in an abstract Address to avoid dependencies on the exact |
| 180 |
* MAC address format. |
180 |
* MAC address format. |
| 181 |
* |
181 |
* |
| 182 |
* A default imlementation of MakeMulticastAddress is provided, but this |
182 |
* A default imlementation of GetMulticast is provided, but this |
| 183 |
* method simply NS_ASSERTS. In the case of net devices that do not support |
183 |
* method simply NS_ASSERTS. In the case of net devices that do not support |
| 184 |
* multicast, clients are expected to test NetDevice::IsMulticast and avoid |
184 |
* multicast, clients are expected to test NetDevice::IsMulticast and avoid |
| 185 |
* attempting to map multicast packets. Subclasses of NetDevice that do |
185 |
* attempting to map multicast packets. Subclasses of NetDevice that do |
|
|
| 196 |
* \see Address |
196 |
* \see Address |
| 197 |
* \see NetDevice::IsMulticast |
197 |
* \see NetDevice::IsMulticast |
| 198 |
*/ |
198 |
*/ |
| 199 |
virtual Address MakeMulticastAddress (Ipv4Address multicastGroup) const = 0; |
199 |
virtual Address GetMulticast (Ipv4Address multicastGroup) const = 0; |
| 200 |
|
200 |
|
| 201 |
/** |
201 |
/** |
| 202 |
* \return value of m_isPointToPoint flag |
202 |
* \return value of m_isPointToPoint flag |