add NetDevice::SetReceiveCallback and use it

This commit is contained in:
Mathieu Lacage
2007-04-30 10:37:22 +02:00
parent 52646de997
commit 4873ff5f39
4 changed files with 30 additions and 9 deletions

View File

@@ -31,6 +31,7 @@
namespace ns3 {
class Packet;
class InternetNode : public Node
{
@@ -57,6 +58,7 @@ public:
void SetName(std::string name);
private:
virtual void DoAddDevice (NetDevice *device) const;
bool ReceiveFromDevice (NetDevice *device, const Packet &p, uint16_t protocolNumber) const;
// Capabilities
ApplicationList* m_applicationList;
L3Demux* m_l3Demux;