diff --git a/src/devices/csma/csma-net-device.cc b/src/devices/csma/csma-net-device.cc index dc2c4c720..db43ff2f0 100644 --- a/src/devices/csma/csma-net-device.cc +++ b/src/devices/csma/csma-net-device.cc @@ -404,14 +404,14 @@ CsmaNetDevice::Attach (Ptr ch) } void -CsmaNetDevice::AddQueue (Ptr q) +CsmaNetDevice::SetQueue (Ptr q) { NS_LOG_FUNCTION (this << q); m_queue = q; } -void CsmaNetDevice::AddReceiveErrorModel (Ptr em) +void CsmaNetDevice::SetReceiveErrorModel (Ptr em) { NS_LOG_FUNCTION (em); diff --git a/src/devices/csma/csma-net-device.h b/src/devices/csma/csma-net-device.h index df1787757..107873f7c 100644 --- a/src/devices/csma/csma-net-device.h +++ b/src/devices/csma/csma-net-device.h @@ -150,7 +150,7 @@ enum CsmaEncapsulationMode { * \param queue a pointer to the queue for which object is assuming * ownership. */ - void AddQueue (Ptr queue); + void SetQueue (Ptr queue); /** * Attach a receive ErrorModel to the CsmaNetDevice. * @@ -160,7 +160,7 @@ enum CsmaEncapsulationMode { * @see ErrorModel * @param em a pointer to the ErrorModel */ - void AddReceiveErrorModel(Ptr em); + void SetReceiveErrorModel(Ptr em); /** * Receive a packet from a connected CsmaChannel. * diff --git a/src/helper/csma-helper.cc b/src/helper/csma-helper.cc index d0c210090..391e529c7 100644 --- a/src/helper/csma-helper.cc +++ b/src/helper/csma-helper.cc @@ -174,7 +174,7 @@ CsmaHelper::Install (const NodeContainer &c, Ptr channel) device->SetAddress (Mac48Address::Allocate ()); node->AddDevice (device); Ptr queue = m_queueFactory.Create (); - device->AddQueue (queue); + device->SetQueue (queue); device->Attach (channel); container.Add (device); }