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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 Ptr<LteUeRrc> ueRrc; | 511 Ptr<LteUeRrc> ueRrc; |
512 for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End (); ++i) | 512 for (NodeList::Iterator i = NodeList::Begin (); i != NodeList::End (); ++i) |
513 { | 513 { |
514 Ptr<Node> node = *i; | 514 Ptr<Node> node = *i; |
515 int nDevs = node->GetNDevices (); | 515 int nDevs = node->GetNDevices (); |
516 for (int j = 0; j < nDevs; ++j) | 516 for (int j = 0; j < nDevs; ++j) |
517 { | 517 { |
518 Ptr<LteUeNetDevice> ueDev = node->GetDevice (j)->GetObject <LteUeNetDe
vice> (); | 518 Ptr<LteUeNetDevice> ueDev = node->GetDevice (j)->GetObject <LteUeNetDe
vice> (); |
519 if (ueDev != 0) | 519 if (ueDev != 0) |
520 { | 520 { |
521 Ptr<LteUeRrc> ueRrc1 = ueDev->GetRrc (); | 521 ueRrc = ueDev->GetRrc (); |
522 NS_LOG_LOGIC ("considering UE IMSI " << ueDev->GetImsi () << " tha
t has cellId " << ueRrc1->GetCellId ()); | 522 NS_LOG_LOGIC ("considering UE IMSI " << ueDev->GetImsi () << " tha
t has cellId " << ueRrc->GetCellId ()); |
523 if (ueRrc1->GetCellId () == cellId) | 523 if (ueRrc->GetCellId () == cellId) |
524 { | 524 { |
525 NS_LOG_LOGIC ("sending SI to IMSI " << ueDev->GetImsi ()); | 525 NS_LOG_LOGIC ("sending SI to IMSI " << ueDev->GetImsi ()); |
526 ueRrc1->GetLteUeRrcSapProvider ()->RecvSystemInformation (msg)
; | 526 ueRrc->GetLteUeRrcSapProvider ()->RecvSystemInformation (msg); |
527 Simulator::Schedule (RRC_REAL_MSG_DELAY,· | 527 Simulator::Schedule (RRC_REAL_MSG_DELAY,· |
528 &LteUeRrcSapProvider::RecvSystemInformati
on, | 528 &LteUeRrcSapProvider::RecvSystemInformati
on, |
529 ueRrc1->GetLteUeRrcSapProvider (),· | 529 ueRrc->GetLteUeRrcSapProvider (),· |
530 msg); | 530 msg); |
531 } | 531 } |
532 } | 532 } |
533 } | 533 } |
534 }· | 534 }· |
535 } | 535 } |
536 | 536 |
537 void· | 537 void· |
538 LteEnbRrcProtocolReal::DoSendRrcConnectionSetup (uint16_t rnti, LteRrcSap::RrcCo
nnectionSetup msg) | 538 LteEnbRrcProtocolReal::DoSendRrcConnectionSetup (uint16_t rnti, LteRrcSap::RrcCo
nnectionSetup msg) |
539 { | 539 { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 { | 767 { |
768 } | 768 } |
769 | 769 |
770 void | 770 void |
771 RealProtocolRlcSapUser::ReceivePdcpPdu (Ptr<Packet> p) | 771 RealProtocolRlcSapUser::ReceivePdcpPdu (Ptr<Packet> p) |
772 { | 772 { |
773 m_pdcp->DoReceivePdcpPdu (m_rnti, p); | 773 m_pdcp->DoReceivePdcpPdu (m_rnti, p); |
774 } | 774 } |
775 | 775 |
776 } // namespace ns3 | 776 } // namespace ns3 |
LEFT | RIGHT |