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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 bool | 271 bool |
272 UanNetDevice::IsMulticast () const | 272 UanNetDevice::IsMulticast () const |
273 { | 273 { |
274 return false; | 274 return false; |
275 } | 275 } |
276 | 276 |
277 Address | 277 Address |
278 UanNetDevice::GetMulticast (Ipv4Address multicastGroup) const | 278 UanNetDevice::GetMulticast (Ipv4Address multicastGroup) const |
279 { | 279 { |
| 280 NS_UNUSED(multicastGroup); |
280 NS_FATAL_ERROR ("UanNetDevice does not support multicast"); | 281 NS_FATAL_ERROR ("UanNetDevice does not support multicast"); |
281 return m_mac->GetBroadcast (); | 282 return m_mac->GetBroadcast (); |
282 } | 283 } |
283 | 284 |
284 Address | 285 Address |
285 UanNetDevice::GetMulticast (Ipv6Address addr) const | 286 UanNetDevice::GetMulticast (Ipv6Address addr) const |
286 { | 287 { |
287 NS_FATAL_ERROR ("UanNetDevice does not support multicast"); | 288 NS_FATAL_ERROR ("UanNetDevice does not support multicast"); |
288 return m_mac->GetBroadcast (); | 289 return m_mac->GetBroadcast (); |
289 } | 290 } |
(...skipping 11 matching lines...) Expand all Loading... |
301 | 302 |
302 bool | 303 bool |
303 UanNetDevice::Send (Ptr<Packet> packet, const Address &dest, uint16_t protocolNu
mber) | 304 UanNetDevice::Send (Ptr<Packet> packet, const Address &dest, uint16_t protocolNu
mber) |
304 { | 305 { |
305 return m_mac->Enqueue (packet, dest, protocolNumber); | 306 return m_mac->Enqueue (packet, dest, protocolNumber); |
306 } | 307 } |
307 | 308 |
308 bool | 309 bool |
309 UanNetDevice::SendFrom (Ptr<Packet> packet, const Address& source, const Address
& dest, uint16_t protocolNumber) | 310 UanNetDevice::SendFrom (Ptr<Packet> packet, const Address& source, const Address
& dest, uint16_t protocolNumber) |
310 { | 311 { |
| 312 NS_UNUSED(source); |
| 313 NS_UNUSED(dest); |
| 314 NS_UNUSED(protocolNumber); |
311 // Not yet implemented | 315 // Not yet implemented |
312 NS_ASSERT_MSG (0, "Not yet implemented"); | 316 NS_ASSERT_MSG (0, "Not yet implemented"); |
313 return false; | 317 return false; |
314 } | 318 } |
315 Ptr<Node> | 319 Ptr<Node> |
316 UanNetDevice::GetNode () const | 320 UanNetDevice::GetNode () const |
317 { | 321 { |
318 return m_node; | 322 return m_node; |
319 } | 323 } |
320 | 324 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } | 406 } |
403 | 407 |
404 void | 408 void |
405 UanNetDevice::SetSleepMode (bool sleep) | 409 UanNetDevice::SetSleepMode (bool sleep) |
406 { | 410 { |
407 m_phy->SetSleepMode (sleep); | 411 m_phy->SetSleepMode (sleep); |
408 } | 412 } |
409 | 413 |
410 } // namespace ns3 | 414 } // namespace ns3 |
411 | 415 |
OLD | NEW |