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) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 m_extensionBits.push_back (evenE); | 563 m_extensionBits.push_back (evenE); |
564 m_lengthIndicators.push_back (evenLi); | 564 m_lengthIndicators.push_back (evenLi); |
565 | 565 |
566 m_headerLength += 1; | 566 m_headerLength += 1; |
567 } | 567 } |
568 } | 568 } |
569 | 569 |
570 if (m_resegmentationFlag == SEGMENT) | 570 if (m_resegmentationFlag == SEGMENT) |
571 { | 571 { |
572 m_lastOffset = m_segmentOffset + start.GetSize () - m_headerLength;· | 572 m_lastOffset = static_cast<uint16_t> (m_segmentOffset + start.GetSize
() - m_headerLength);· |
573 } | 573 } |
574 } | 574 } |
575 else // if ( m_dataControlBit == CONTROL_PDU ) | 575 else // if ( m_dataControlBit == CONTROL_PDU ) |
576 { | 576 { |
577 byte_2 = i.ReadU8 (); | 577 byte_2 = i.ReadU8 (); |
578 | 578 |
579 m_controlPduType = (byte_1 & 0x70) >> 4; | 579 m_controlPduType = (byte_1 & 0x70) >> 4; |
580 m_ackSn = ((byte_1 & 0x0F) << 6 ) | ((byte_2 & 0xFC) >> 2); | 580 m_ackSn = ((byte_1 & 0x0F) << 6 ) | ((byte_2 & 0xFC) >> 2); |
581 | 581 |
582 int moreNacks = (byte_2 & 0x02) >> 1; | 582 int moreNacks = (byte_2 & 0x02) >> 1; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 else | 637 else |
638 { | 638 { |
639 m_headerLength++; | 639 m_headerLength++; |
640 } | 640 } |
641 } | 641 } |
642 | 642 |
643 return GetSerializedSize (); | 643 return GetSerializedSize (); |
644 } | 644 } |
645 | 645 |
646 }; // namespace ns3 | 646 }; // namespace ns3 |
LEFT | RIGHT |