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) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2012 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void· | 90 void· |
91 LteUeRrcProtocolIdeal::SetUeRrc (Ptr<LteUeRrc> rrc) | 91 LteUeRrcProtocolIdeal::SetUeRrc (Ptr<LteUeRrc> rrc) |
92 { | 92 { |
93 m_rrc = rrc; | 93 m_rrc = rrc; |
94 } | 94 } |
95 | 95 |
96 void· | 96 void· |
97 LteUeRrcProtocolIdeal::DoSetup (LteUeRrcSapUser::SetupParameters params) | 97 LteUeRrcProtocolIdeal::DoSetup (LteUeRrcSapUser::SetupParameters params) |
98 { | 98 { |
99 NS_LOG_FUNCTION (this); | 99 NS_LOG_FUNCTION (this); |
100 NS_UNUSED(params); | 100 NS_UNUSED (params); |
101 // We don't care about SRB0/SRB1 since we use ideal RRC messages. | 101 // We don't care about SRB0/SRB1 since we use ideal RRC messages. |
102 } | 102 } |
103 | 103 |
104 void· | 104 void· |
105 LteUeRrcProtocolIdeal::DoSendRrcConnectionRequest (LteRrcSap::RrcConnectionReque
st msg) | 105 LteUeRrcProtocolIdeal::DoSendRrcConnectionRequest (LteRrcSap::RrcConnectionReque
st msg) |
106 { | 106 { |
107 // initialize the RNTI and get the EnbLteRrcSapProvider for the | 107 // initialize the RNTI and get the EnbLteRrcSapProvider for the |
108 // eNB we are currently attached to | 108 // eNB we are currently attached to |
109 m_rnti = m_rrc->GetRnti (); | 109 m_rnti = m_rrc->GetRnti (); |
110 SetEnbRrcSapProvider (); | 110 SetEnbRrcSapProvider (); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 std::map<uint16_t, LteUeRrcSapProvider*>::iterator it; | 277 std::map<uint16_t, LteUeRrcSapProvider*>::iterator it; |
278 it = m_enbRrcSapProviderMap.find (rnti); | 278 it = m_enbRrcSapProviderMap.find (rnti); |
279 NS_ASSERT_MSG (it != m_enbRrcSapProviderMap.end (), "could not find RNTI = " <
< rnti); | 279 NS_ASSERT_MSG (it != m_enbRrcSapProviderMap.end (), "could not find RNTI = " <
< rnti); |
280 it->second = p; | 280 it->second = p; |
281 } | 281 } |
282 | 282 |
283 void· | 283 void· |
284 LteEnbRrcProtocolIdeal::DoSetupUe (uint16_t rnti, LteEnbRrcSapUser::SetupUeParam
eters params) | 284 LteEnbRrcProtocolIdeal::DoSetupUe (uint16_t rnti, LteEnbRrcSapUser::SetupUeParam
eters params) |
285 { | 285 { |
286 NS_LOG_FUNCTION (this << rnti); | 286 NS_LOG_FUNCTION (this << rnti); |
287 NS_UNUSED(params); | 287 NS_UNUSED (params); |
288 | 288 |
289 // // walk list of all nodes to get the peer UE RRC SAP Provider | 289 // // walk list of all nodes to get the peer UE RRC SAP Provider |
290 // Ptr<LteUeRrc> ueRrc; | 290 // Ptr<LteUeRrc> ueRrc; |
291 // NodeList::Iterator listEnd = NodeList::End (); | 291 // NodeList::Iterator listEnd = NodeList::End (); |
292 // bool found = false; | 292 // bool found = false; |
293 // for (NodeList::Iterator i = NodeList::Begin (); (i != listEnd) && (found ==
false); i++) | 293 // for (NodeList::Iterator i = NodeList::Begin (); (i != listEnd) && (found ==
false); i++) |
294 // { | 294 // { |
295 // Ptr<Node> node = *i; | 295 // Ptr<Node> node = *i; |
296 // int nDevs = node->GetNDevices (); | 296 // int nDevs = node->GetNDevices (); |
297 // for (int j = 0; j < nDevs; j++) | 297 // for (int j = 0; j < nDevs; j++) |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 LteRrcSap::RrcConnectionReconfiguration msg = it->second; | 665 LteRrcSap::RrcConnectionReconfiguration msg = it->second; |
666 g_handoverCommandMsgMap.erase (it); | 666 g_handoverCommandMsgMap.erase (it); |
667 return msg; | 667 return msg; |
668 } | 668 } |
669 | 669 |
670 | 670 |
671 | 671 |
672 | 672 |
673 | 673 |
674 } // namespace ns3 | 674 } // namespace ns3 |
LEFT | RIGHT |