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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 lteHelper->SetEpcHelper (epcHelper); | 62 lteHelper->SetEpcHelper (epcHelper); |
63 | 63 |
64 ConfigStore inputConfig; | 64 ConfigStore inputConfig; |
65 inputConfig.ConfigureDefaults (); | 65 inputConfig.ConfigureDefaults (); |
66 | 66 |
67 // parse again so you can override default values from the command line | 67 // parse again so you can override default values from the command line |
68 cmd.Parse (argc, argv); | 68 cmd.Parse (argc, argv); |
69 | 69 |
70 Ptr<Node> pgw = epcHelper->GetPgwNode (); | 70 Ptr<Node> pgw = epcHelper->GetPgwNode (); |
71 | 71 |
72 #if 0 | |
73 // Enable Logging | 72 // Enable Logging |
74 LogLevel logLevel = (LogLevel)(LOG_PREFIX_FUNC | LOG_PREFIX_TIME | LOG_LEVEL_A
LL); | 73 LogLevel logLevel = (LogLevel)(LOG_PREFIX_FUNC | LOG_PREFIX_TIME | LOG_LEVEL_A
LL); |
75 | 74 |
76 LogComponentEnable ("BearerDeactivateExample", LOG_LEVEL_ALL); | 75 LogComponentEnable ("BearerDeactivateExample", LOG_LEVEL_ALL); |
77 LogComponentEnable ("LteHelper", logLevel); | 76 LogComponentEnable ("LteHelper", logLevel); |
78 LogComponentEnable ("EpcHelper", logLevel); | 77 LogComponentEnable ("EpcHelper", logLevel); |
79 LogComponentEnable ("EpcEnbApplication", logLevel); | 78 LogComponentEnable ("EpcEnbApplication", logLevel); |
80 LogComponentEnable ("EpcSgwPgwApplication", logLevel); | 79 LogComponentEnable ("EpcSgwPgwApplication", logLevel); |
81 LogComponentEnable ("EpcMme", logLevel); | 80 LogComponentEnable ("EpcMme", logLevel); |
82 LogComponentEnable ("LteEnbRrc", logLevel); | 81 LogComponentEnable ("LteEnbRrc", logLevel); |
83 #endif | 82 |
84 | 83 |
85 // Create a single RemoteHost | 84 // Create a single RemoteHost |
86 NodeContainer remoteHostContainer; | 85 NodeContainer remoteHostContainer; |
87 remoteHostContainer.Create (1); | 86 remoteHostContainer.Create (1); |
88 Ptr<Node> remoteHost = remoteHostContainer.Get (0); | 87 Ptr<Node> remoteHost = remoteHostContainer.Get (0); |
89 InternetStackHelper internet; | 88 InternetStackHelper internet; |
90 internet.Install (remoteHostContainer); | 89 internet.Install (remoteHostContainer); |
91 | 90 |
92 // Create the Internet | 91 // Create the Internet |
93 PointToPointHelper p2ph; | 92 PointToPointHelper p2ph; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 229 |
231 Simulator::Run (); | 230 Simulator::Run (); |
232 /*GtkConfigStore config; | 231 /*GtkConfigStore config; |
233 config.ConfigureAttributes();*/ | 232 config.ConfigureAttributes();*/ |
234 | 233 |
235 Simulator::Destroy (); | 234 Simulator::Destroy (); |
236 return 0; | 235 return 0; |
237 | 236 |
238 } | 237 } |
239 | 238 |
LEFT | RIGHT |