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) 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 /* | 73 /* |
74 * The values for the fields of the Ipv4 header are taken from m_header and | 74 * The values for the fields of the Ipv4 header are taken from m_header and |
75 * thus might differ from those present in the packet in case the header is | 75 * thus might differ from those present in the packet in case the header is |
76 * modified after being added to the packet. However, this function is likely | 76 * modified after being added to the packet. However, this function is likely |
77 * to be called before the header is added to the packet (i.e., before the | 77 * to be called before the header is added to the packet (i.e., before the |
78 * packet is dequeued from the queue disc) | 78 * packet is dequeued from the queue disc) |
79 */ | 79 */ |
80 virtual bool GetUint8Value (Uint8Values field, uint8_t &value) const; | 80 virtual bool GetUint8Value (Uint8Values field, uint8_t &value) const; |
81 | 81 |
| 82 /** |
| 83 * \brief Marks the packet by setting ECN_CE bits if the packet has ECN_ECT0 o
r ECN_ECT1 bits set |
| 84 * \return true if the packet gets marked, false otherwise |
| 85 */ |
| 86 virtual bool Mark (void); |
| 87 |
82 private: | 88 private: |
83 /** | 89 /** |
84 * \brief Default constructor | 90 * \brief Default constructor |
85 * | 91 * |
86 * Defined and unimplemented to avoid misuse | 92 * Defined and unimplemented to avoid misuse |
87 */ | 93 */ |
88 Ipv4QueueDiscItem (); | 94 Ipv4QueueDiscItem (); |
89 /** | 95 /** |
90 * \brief Copy constructor | 96 * \brief Copy constructor |
91 * | 97 * |
92 * Defined and unimplemented to avoid misuse | 98 * Defined and unimplemented to avoid misuse |
93 */ | 99 */ |
94 Ipv4QueueDiscItem (const Ipv4QueueDiscItem &); | 100 Ipv4QueueDiscItem (const Ipv4QueueDiscItem &); |
95 /** | 101 /** |
96 * \brief Assignment operator | 102 * \brief Assignment operator |
97 * | 103 * |
98 * Defined and unimplemented to avoid misuse | 104 * Defined and unimplemented to avoid misuse |
99 * \returns | 105 * \returns |
100 */ | 106 */ |
101 Ipv4QueueDiscItem &operator = (const Ipv4QueueDiscItem &); | 107 Ipv4QueueDiscItem &operator = (const Ipv4QueueDiscItem &); |
102 | 108 |
103 Ipv4Header m_header; //!< The IPv4 header. | 109 Ipv4Header m_header; //!< The IPv4 header. |
104 bool m_headerAdded; //!< True if the header has already been added to the pa
cket. | 110 bool m_headerAdded; //!< True if the header has already been added to the pa
cket. |
105 }; | 111 }; |
106 | 112 |
107 } // namespace ns3 | 113 } // namespace ns3 |
108 | 114 |
109 #endif /* IPV4_QUEUE_DISC_ITEM_H */ | 115 #endif /* IPV4_QUEUE_DISC_ITEM_H */ |
OLD | NEW |