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) 2007,2008,2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008,2009 INRIA, UDcast |
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 15 matching lines...) Expand all Loading... |
26 #include "ns3/log.h" | 26 #include "ns3/log.h" |
27 #include "wimax-tlv.h" | 27 #include "wimax-tlv.h" |
28 | 28 |
29 namespace ns3 { | 29 namespace ns3 { |
30 | 30 |
31 NS_LOG_COMPONENT_DEFINE ("MACMESSAGES"); | 31 NS_LOG_COMPONENT_DEFINE ("MACMESSAGES"); |
32 | 32 |
33 NS_OBJECT_ENSURE_REGISTERED (ManagementMessageType); | 33 NS_OBJECT_ENSURE_REGISTERED (ManagementMessageType); |
34 | 34 |
35 ManagementMessageType::ManagementMessageType (void) | 35 ManagementMessageType::ManagementMessageType (void) |
36 : m_type (static_cast<uint8_t>(~0)) | 36 : m_type (static_cast<uint8_t> (~0)) |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 ManagementMessageType::ManagementMessageType (uint8_t type) | 40 ManagementMessageType::ManagementMessageType (uint8_t type) |
41 : m_type (type) | 41 : m_type (type) |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 ManagementMessageType::~ManagementMessageType (void) | 45 ManagementMessageType::~ManagementMessageType (void) |
46 { | 46 { |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 | 672 |
673 void | 673 void |
674 DsaRsp::SetServiceFlow (ServiceFlow sf) | 674 DsaRsp::SetServiceFlow (ServiceFlow sf) |
675 { | 675 { |
676 m_serviceFlow = sf; | 676 m_serviceFlow = sf; |
677 } | 677 } |
678 | 678 |
679 void | 679 void |
680 DsaRsp::SetConfirmationCode (uint16_t confirmationCode) | 680 DsaRsp::SetConfirmationCode (uint16_t confirmationCode) |
681 { | 681 { |
682 m_confirmationCode = static_cast<uint8_t>(confirmationCode); | 682 m_confirmationCode = static_cast<uint8_t> (confirmationCode); |
683 } | 683 } |
684 | 684 |
685 uint16_t | 685 uint16_t |
686 DsaRsp::GetConfirmationCode (void) const | 686 DsaRsp::GetConfirmationCode (void) const |
687 { | 687 { |
688 return m_confirmationCode; | 688 return m_confirmationCode; |
689 } | 689 } |
690 | 690 |
691 void | 691 void |
692 DsaRsp::SetSfid (uint32_t sfid) | 692 DsaRsp::SetSfid (uint32_t sfid) |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 | 794 |
795 uint16_t | 795 uint16_t |
796 DsaAck::GetTransactionId (void) const | 796 DsaAck::GetTransactionId (void) const |
797 { | 797 { |
798 return m_transactionId; | 798 return m_transactionId; |
799 } | 799 } |
800 | 800 |
801 void | 801 void |
802 DsaAck::SetConfirmationCode (uint16_t confirmationCode) | 802 DsaAck::SetConfirmationCode (uint16_t confirmationCode) |
803 { | 803 { |
804 m_confirmationCode = static_cast<uint8_t>(confirmationCode); | 804 m_confirmationCode = static_cast<uint8_t> (confirmationCode); |
805 } | 805 } |
806 | 806 |
807 uint16_t | 807 uint16_t |
808 DsaAck::GetConfirmationCode (void) const | 808 DsaAck::GetConfirmationCode (void) const |
809 { | 809 { |
810 return m_confirmationCode; | 810 return m_confirmationCode; |
811 } | 811 } |
812 | 812 |
813 std::string | 813 std::string |
814 DsaAck::GetName (void) const | 814 DsaAck::GetName (void) const |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 DsaAck::Deserialize (Buffer::Iterator start) | 857 DsaAck::Deserialize (Buffer::Iterator start) |
858 { | 858 { |
859 Buffer::Iterator i = start; | 859 Buffer::Iterator i = start; |
860 m_transactionId = i.ReadU16 (); | 860 m_transactionId = i.ReadU16 (); |
861 m_confirmationCode = i.ReadU8 (); | 861 m_confirmationCode = i.ReadU8 (); |
862 | 862 |
863 return i.GetDistanceFrom (start); | 863 return i.GetDistanceFrom (start); |
864 } | 864 } |
865 | 865 |
866 } // namespace ns3 | 866 } // namespace ns3 |
LEFT | RIGHT |