LEFT | RIGHT |
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) 2016 Universita' degli Studi di Napoli Federico II | 3 * Copyright (c) 2016 Universita' degli Studi di Napoli Federico II |
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 { | 51 { |
52 NS_LOG_FUNCTION (this); | 52 NS_LOG_FUNCTION (this); |
53 NS_ASSERT (m_packet != 0); | 53 NS_ASSERT (m_packet != 0); |
54 return m_packet->GetSize (); | 54 return m_packet->GetSize (); |
55 } | 55 } |
56 | 56 |
57 bool | 57 bool |
58 QueueItem::GetUint8Value (QueueItem::Uint8Values field, uint8_t& value) const | 58 QueueItem::GetUint8Value (QueueItem::Uint8Values field, uint8_t& value) const |
59 { | 59 { |
60 NS_LOG_FUNCTION (this); | 60 NS_LOG_FUNCTION (this); |
61 NS_UNUSED(field); | 61 NS_UNUSED (field); |
62 NS_UNUSED(value); | 62 NS_UNUSED (value); |
63 return false; | 63 return false; |
64 } | 64 } |
65 | 65 |
66 void | 66 void |
67 QueueItem::Print (std::ostream& os) const | 67 QueueItem::Print (std::ostream& os) const |
68 { | 68 { |
69 os << GetPacket(); | 69 os << GetPacket(); |
70 } | 70 } |
71 | 71 |
72 std::ostream & operator << (std::ostream &os, const QueueItem &item) | 72 std::ostream & operator << (std::ostream &os, const QueueItem &item) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 QueueDiscItem::Print (std::ostream& os) const | 136 QueueDiscItem::Print (std::ostream& os) const |
137 { | 137 { |
138 os << GetPacket () << " " | 138 os << GetPacket () << " " |
139 << "Dst addr " << m_address << " " | 139 << "Dst addr " << m_address << " " |
140 << "proto " << (uint16_t) m_protocol << " " | 140 << "proto " << (uint16_t) m_protocol << " " |
141 << "txq " << (uint8_t) m_txq | 141 << "txq " << (uint8_t) m_txq |
142 ; | 142 ; |
143 } | 143 } |
144 | 144 |
145 } // namespace ns3 | 145 } // namespace ns3 |
LEFT | RIGHT |