LEFT | RIGHT |
(no file at all) | |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 uint32_t Ipv6Header::GetFlowLabel () const | 60 uint32_t Ipv6Header::GetFlowLabel () const |
61 { | 61 { |
62 return m_flowLabel; | 62 return m_flowLabel; |
63 } | 63 } |
64 | 64 |
65 void Ipv6Header::SetPayloadLength (uint16_t len) | 65 void Ipv6Header::SetPayloadLength (uint16_t len) |
66 { | 66 { |
67 m_payloadLength = len; | 67 m_payloadLength = len; |
| 68 } |
| 69 |
| 70 void Ipv6Header::SetPayloadLength(uint32_t len) |
| 71 { |
| 72 m_payloadLength = static_cast<uint16_t> (len); |
68 } | 73 } |
69 | 74 |
70 uint16_t Ipv6Header::GetPayloadLength () const | 75 uint16_t Ipv6Header::GetPayloadLength () const |
71 { | 76 { |
72 return m_payloadLength; | 77 return m_payloadLength; |
73 } | 78 } |
74 | 79 |
75 void Ipv6Header::SetNextHeader (uint8_t next) | 80 void Ipv6Header::SetNextHeader (uint8_t next) |
76 { | 81 { |
77 m_nextHeader = next; | 82 m_nextHeader = next; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 return "ECT (0)"; | 284 return "ECT (0)"; |
280 case ECN_CE: | 285 case ECN_CE: |
281 return "CE"; | 286 return "CE"; |
282 default: | 287 default: |
283 return "Unknown ECN codepoint"; | 288 return "Unknown ECN codepoint"; |
284 }; | 289 }; |
285 } | 290 } |
286 | 291 |
287 } /* namespace ns3 */ | 292 } /* namespace ns3 */ |
288 | 293 |
LEFT | RIGHT |