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,2009 INESC Porto | 3 * Copyright (c) 2008,2009 INESC Porto |
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * \param isPointToPoint the value that should be returned by the | 90 * \param isPointToPoint the value that should be returned by the |
91 * IsPointToPoint method for this instance. | 91 * IsPointToPoint method for this instance. |
92 */ | 92 */ |
93 void SetIsPointToPoint (bool isPointToPoint); | 93 void SetIsPointToPoint (bool isPointToPoint); |
94 | 94 |
95 /** | 95 /** |
96 * \brief Configure whether the virtual device supports SendFrom | 96 * \brief Configure whether the virtual device supports SendFrom |
97 */ | 97 */ |
98 void SetSupportsSendFrom (bool supportsSendFrom); | 98 void SetSupportsSendFrom (bool supportsSendFrom); |
99 | 99 |
| 100 virtual QueueState GetQueueState (uint32_t index); |
| 101 virtual uint32_t GetNQueues (void); |
| 102 virtual bool IsTxPathBlocked (void); |
| 103 virtual void SetQueueStateChangeCallback (Callback<void,uint32_t> callback); |
| 104 |
100 /** | 105 /** |
101 * \brief Configure the reported MTU for the virtual device. | 106 * \brief Configure the reported MTU for the virtual device. |
102 * \param mtu MTU value to set | 107 * \param mtu MTU value to set |
103 * \return whether the MTU value was within legal bounds | 108 * \return whether the MTU value was within legal bounds |
104 */ | 109 */ |
105 bool SetMtu (const uint16_t mtu); | 110 bool SetMtu (const uint16_t mtu); |
106 | 111 |
107 | 112 |
108 /** | 113 /** |
109 * \param packet packet sent from below up to Network Device | 114 * \param packet packet sent from below up to Network Device |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 uint16_t m_mtu; | 172 uint16_t m_mtu; |
168 bool m_needsArp; | 173 bool m_needsArp; |
169 bool m_supportsSendFrom; | 174 bool m_supportsSendFrom; |
170 bool m_isPointToPoint; | 175 bool m_isPointToPoint; |
171 }; | 176 }; |
172 | 177 |
173 }; // namespace ns3 | 178 }; // namespace ns3 |
174 | 179 |
175 #endif | 180 #endif |
176 | 181 |
OLD | NEW |