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) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual Ptr<Node> GetNode (void) const; | 62 virtual Ptr<Node> GetNode (void) const; |
63 virtual void SetNode (Ptr<Node> node); | 63 virtual void SetNode (Ptr<Node> node); |
64 virtual bool NeedsArp (void) const; | 64 virtual bool NeedsArp (void) const; |
65 virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb); | 65 virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb); |
66 | 66 |
67 virtual Address GetMulticast (Ipv6Address addr) const; | 67 virtual Address GetMulticast (Ipv6Address addr) const; |
68 | 68 |
69 virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb); | 69 virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb); |
70 virtual bool SupportsSendFrom (void) const; | 70 virtual bool SupportsSendFrom (void) const; |
71 | 71 |
| 72 virtual QueueState GetQueueState (uint32_t index); |
| 73 virtual uint32_t GetNQueues (void); |
| 74 virtual bool IsTxPathBlocked (void); |
| 75 virtual void SetQueueStateChangeCallback (Callback<void,uint32_t> callback); |
| 76 |
72 protected: | 77 protected: |
73 virtual void DoDispose (void); | 78 virtual void DoDispose (void); |
74 private: | 79 private: |
75 void Receive (Ptr<Packet> packet, uint16_t protocol, Mac48Address to, Mac48Add
ress from); | 80 void Receive (Ptr<Packet> packet, uint16_t protocol, Mac48Address to, Mac48Add
ress from); |
76 NetDevice::ReceiveCallback m_rxCallback; | 81 NetDevice::ReceiveCallback m_rxCallback; |
77 NetDevice::PromiscReceiveCallback m_promiscCallback; | 82 NetDevice::PromiscReceiveCallback m_promiscCallback; |
78 Ptr<Node> m_node; | 83 Ptr<Node> m_node; |
79 uint16_t m_mtu; | 84 uint16_t m_mtu; |
80 uint32_t m_ifIndex; | 85 uint32_t m_ifIndex; |
81 Mac48Address m_address; | 86 Mac48Address m_address; |
82 }; | 87 }; |
83 | 88 |
84 } // namespace ns3 | 89 } // namespace ns3 |
85 | 90 |
86 #endif /* LOOPBACK_NET_DEVICE_H */ | 91 #endif /* LOOPBACK_NET_DEVICE_H */ |
OLD | NEW |