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) 2008 INRIA | 3 * Copyright (c) 2008 INRIA |
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void· | 71 void· |
72 PointToPointHelper::SetChannelAttribute (std::string n1, const AttributeValue &v
1) | 72 PointToPointHelper::SetChannelAttribute (std::string n1, const AttributeValue &v
1) |
73 { | 73 { |
74 m_channelFactory.Set (n1, v1); | 74 m_channelFactory.Set (n1, v1); |
75 m_remoteChannelFactory.Set (n1, v1); | 75 m_remoteChannelFactory.Set (n1, v1); |
76 } | 76 } |
77 | 77 |
78 void· | 78 void· |
79 PointToPointHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, b
ool promiscuous, bool explicitFilename) | 79 PointToPointHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, b
ool promiscuous, bool explicitFilename) |
80 { | 80 { |
81 NS_UNUSED(promiscuous); | 81 NS_UNUSED (promiscuous); |
82 // | 82 // |
83 // All of the Pcap enable functions vector through here including the ones | 83 // All of the Pcap enable functions vector through here including the ones |
84 // that are wandering through all of devices on perhaps all of the nodes in | 84 // that are wandering through all of devices on perhaps all of the nodes in |
85 // the system. We can only deal with devices of type PointToPointNetDevice. | 85 // the system. We can only deal with devices of type PointToPointNetDevice. |
86 // | 86 // |
87 Ptr<PointToPointNetDevice> device = nd->GetObject<PointToPointNetDevice> (); | 87 Ptr<PointToPointNetDevice> device = nd->GetObject<PointToPointNetDevice> (); |
88 if (device == 0) | 88 if (device == 0) |
89 { | 89 { |
90 NS_LOG_INFO ("PointToPointHelper::EnablePcapInternal(): Device " << device
<< " not of type ns3::PointToPointNetDevice"); | 90 NS_LOG_INFO ("PointToPointHelper::EnablePcapInternal(): Device " << device
<< " not of type ns3::PointToPointNetDevice"); |
91 return; | 91 return; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 NetDeviceContainer· | 295 NetDeviceContainer· |
296 PointToPointHelper::Install (std::string aName, std::string bName) | 296 PointToPointHelper::Install (std::string aName, std::string bName) |
297 { | 297 { |
298 Ptr<Node> a = Names::Find<Node> (aName); | 298 Ptr<Node> a = Names::Find<Node> (aName); |
299 Ptr<Node> b = Names::Find<Node> (bName); | 299 Ptr<Node> b = Names::Find<Node> (bName); |
300 return Install (a, b); | 300 return Install (a, b); |
301 } | 301 } |
302 | 302 |
303 } // namespace ns3 | 303 } // namespace ns3 |
LEFT | RIGHT |