src/node/serial-net-device.h
changeset 310 03f09f4d1a8d
parent 292 cc17705d3344
child 311 f0a9889dff3a
--- a/src/node/serial-net-device.h	Tue Feb 20 23:26:59 2007 -0800
+++ b/src/node/serial-net-device.h	Tue Feb 20 23:58:21 2007 -0800
@@ -32,9 +32,11 @@
 namespace ns3 {
 
 class SerialChannel;
+class SerialPhy;
 class Queue;
 
 class SerialNetDevice : public NetDevice {
+friend class SerialPhy;
 public:
   SerialNetDevice(Node* node, const MacAddress& addr);
   virtual ~SerialNetDevice();
@@ -52,13 +54,16 @@
 
 protected:
   Queue* GetQueue(void) const { return m_queue;};
+  SerialChannel* GetChannel(void) const { return m_channel;};
 
 private:
   virtual void NotifyDataAvailable (void);
   virtual bool SendTo (Packet& p, const MacAddress& dest);
 
+  SerialPhy* m_phy;
   SerialChannel* m_channel;
   Queue* m_queue;
+
 };
 
 }; // namespace ns3