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) 2007-2008 Louis Pasteur University | 3 * Copyright (c) 2007-2008 Louis Pasteur University |
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 * \returns the DSCP field of this packet. | 137 * \returns the DSCP field of this packet. |
138 */ | 138 */ |
139 DscpType GetDscp (void) const; | 139 DscpType GetDscp (void) const; |
140 | 140 |
141 /** | 141 /** |
142 * \param dscp the dscp | 142 * \param dscp the dscp |
143 * \returns std::string of DSCPType | 143 * \returns std::string of DSCPType |
144 */ | 144 */ |
145 std::string DscpTypeToString (DscpType dscp) const; | 145 std::string DscpTypeToString (DscpType dscp) const; |
146 | 146 |
| 147 enum EcnType |
| 148 { |
| 149 // Prefixed with "ECN" to avoid name clash |
| 150 ECN_NotECT = 0x00, |
| 151 ECN_ECT1 = 0x01, |
| 152 ECN_ECT0 = 0x02, |
| 153 ECN_CE = 0x03 |
| 154 }; |
| 155 |
| 156 /** |
| 157 * \brief Set ECN Field |
| 158 * \param ecn ECN Type |
| 159 */ |
| 160 void SetEcn (EcnType ecn); |
| 161 |
| 162 /** |
| 163 * \return the ECN field of this packet. |
| 164 */ |
| 165 EcnType GetEcn (void) const; |
| 166 |
| 167 /** |
| 168 * \param ecn the ECNType |
| 169 * \return std::string of ECNType |
| 170 */ |
| 171 std::string EcnTypeToString (EcnType ecn) const; |
| 172 |
147 /** | 173 /** |
148 * \brief Set the "Flow label" field. | 174 * \brief Set the "Flow label" field. |
149 * \param flow the 20-bit value | 175 * \param flow the 20-bit value |
150 */ | 176 */ |
151 void SetFlowLabel (uint32_t flow); | 177 void SetFlowLabel (uint32_t flow); |
152 | 178 |
153 /** | 179 /** |
154 * \brief Get the "Flow label" field. | 180 * \brief Get the "Flow label" field. |
155 * \return the flow label value | 181 * \return the flow label value |
156 */ | 182 */ |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 /** | 303 /** |
278 * \brief The destination address. | 304 * \brief The destination address. |
279 */ | 305 */ |
280 Ipv6Address m_destinationAddress; | 306 Ipv6Address m_destinationAddress; |
281 }; | 307 }; |
282 | 308 |
283 } /* namespace ns3 */ | 309 } /* namespace ns3 */ |
284 | 310 |
285 #endif /* IPV6_HEADER_H */ | 311 #endif /* IPV6_HEADER_H */ |
286 | 312 |
OLD | NEW |