OLD | NEW |
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 INRIA | 3 * Copyright (c) 2007,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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 Ptr<Packet> p = (*iter)->Copy (); | 559 Ptr<Packet> p = (*iter)->Copy (); |
560 WimaxMacToMacHeader m2m (p->GetSize ()); | 560 WimaxMacToMacHeader m2m (p->GetSize ()); |
561 p->AddHeader (m2m); | 561 p->AddHeader (m2m); |
562 file->Write (Simulator::Now (), p); | 562 file->Write (Simulator::Now (), p); |
563 } | 563 } |
564 } | 564 } |
565 | 565 |
566 void | 566 void |
567 WimaxHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, bool exp
licitFilename, bool promiscuous) | 567 WimaxHelper::EnablePcapInternal (std::string prefix, Ptr<NetDevice> nd, bool exp
licitFilename, bool promiscuous) |
568 { | 568 { |
| 569 NS_UNUSED (promiscuous); |
569 // | 570 // |
570 // All of the Pcap enable functions vector through here including the ones | 571 // All of the Pcap enable functions vector through here including the ones |
571 // that are wandering through all of devices on perhaps all of the nodes in | 572 // that are wandering through all of devices on perhaps all of the nodes in |
572 // the system. We can only deal with devices of type WimaxNetDevice. | 573 // the system. We can only deal with devices of type WimaxNetDevice. |
573 // | 574 // |
574 Ptr<WimaxNetDevice> device = nd->GetObject<WimaxNetDevice> (); | 575 Ptr<WimaxNetDevice> device = nd->GetObject<WimaxNetDevice> (); |
575 if (device == 0) | 576 if (device == 0) |
576 { | 577 { |
577 NS_LOG_INFO ("WimaxHelper::EnablePcapInternal(): Device " << &device << "
not of type ns3::WimaxNetDevice"); | 578 NS_LOG_INFO ("WimaxHelper::EnablePcapInternal(): Device " << &device << "
not of type ns3::WimaxNetDevice"); |
578 return; | 579 return; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 } | 620 } |
620 } | 621 } |
621 | 622 |
622 // Handle any random numbers in the channel. | 623 // Handle any random numbers in the channel. |
623 currentStream += m_channel->AssignStreams (currentStream); | 624 currentStream += m_channel->AssignStreams (currentStream); |
624 | 625 |
625 return (currentStream - stream); | 626 return (currentStream - stream); |
626 } | 627 } |
627 | 628 |
628 } // namespace ns3 | 629 } // namespace ns3 |
OLD | NEW |