add SetAddress methods.
This commit is contained in:
@@ -111,6 +111,12 @@ CsmaNetDevice::DoDispose ()
|
||||
NetDevice::DoDispose ();
|
||||
}
|
||||
|
||||
void
|
||||
CsmaNetDevice::SetAddress (Mac48Address self)
|
||||
{
|
||||
m_address = self;
|
||||
}
|
||||
|
||||
void
|
||||
CsmaNetDevice::SetSendEnable (bool sendEnable)
|
||||
{
|
||||
|
||||
@@ -180,6 +180,8 @@ enum CsmaEncapsulationMode {
|
||||
void SetSendEnable (bool);
|
||||
void SetReceiveEnable (bool);
|
||||
|
||||
void SetAddress (Mac48Address self);
|
||||
|
||||
|
||||
// inherited from NetDevice base class.
|
||||
virtual void SetName(const std::string name);
|
||||
|
||||
@@ -87,6 +87,12 @@ PointToPointNetDevice::PointToPointNetDevice ()
|
||||
PointToPointNetDevice::~PointToPointNetDevice ()
|
||||
{}
|
||||
|
||||
void
|
||||
PointToPointNetDevice::SetAddress (Mac48Address self)
|
||||
{
|
||||
m_address = self;
|
||||
}
|
||||
|
||||
void
|
||||
PointToPointNetDevice::AddHeader(Ptr<Packet> p, uint16_t protocolNumber)
|
||||
{
|
||||
|
||||
@@ -145,6 +145,8 @@ public:
|
||||
*/
|
||||
void Receive (Ptr<Packet> p);
|
||||
|
||||
void SetAddress (Mac48Address self);
|
||||
|
||||
// inherited from NetDevice base class.
|
||||
virtual void SetName(const std::string name);
|
||||
virtual std::string GetName(void) const;
|
||||
|
||||
Reference in New Issue
Block a user