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) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 void· | 140 void· |
141 Ns3TcpInteroperabilityTestCase::DoTeardown (void) | 141 Ns3TcpInteroperabilityTestCase::DoTeardown (void) |
142 { | 142 { |
143 m_pcapFile.Close (); | 143 m_pcapFile.Close (); |
144 } | 144 } |
145 | 145 |
146 void | 146 void |
147 Ns3TcpInteroperabilityTestCase::Ipv4L3Tx (std::string context, Ptr<const Packet>
packet, Ptr<Ipv4> ipv4, uint32_t interface) | 147 Ns3TcpInteroperabilityTestCase::Ipv4L3Tx (std::string context, Ptr<const Packet>
packet, Ptr<Ipv4> ipv4, uint32_t interface) |
148 { | 148 { |
| 149 NS_UNUSED (interface); |
149 // | 150 // |
150 // We're not testing IP so remove and toss the header. In order to do this, | 151 // We're not testing IP so remove and toss the header. In order to do this, |
151 // though, we need to copy the packet since we have a const version. | 152 // though, we need to copy the packet since we have a const version. |
152 // | 153 // |
153 Ptr<Packet> p = packet->Copy (); | 154 Ptr<Packet> p = packet->Copy (); |
154 Ipv4Header ipHeader; | 155 Ipv4Header ipHeader; |
155 p->RemoveHeader (ipHeader); | 156 p->RemoveHeader (ipHeader); |
156 | 157 |
157 // | 158 // |
158 // What is left is the TCP header and any data that may be sent. We aren't | 159 // What is left is the TCP header and any data that may be sent. We aren't |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 Ns3TcpInteroperabilityTestSuite::Ns3TcpInteroperabilityTestSuite () | 317 Ns3TcpInteroperabilityTestSuite::Ns3TcpInteroperabilityTestSuite () |
317 : TestSuite ("ns3-tcp-interoperability", SYSTEM) | 318 : TestSuite ("ns3-tcp-interoperability", SYSTEM) |
318 { | 319 { |
319 // We can't use NS_TEST_SOURCEDIR variable here because we use subdirectories | 320 // We can't use NS_TEST_SOURCEDIR variable here because we use subdirectories |
320 SetDataDir ("src/test/ns3tcp/response-vectors"); | 321 SetDataDir ("src/test/ns3tcp/response-vectors"); |
321 ·· | 322 ·· |
322 AddTestCase (new Ns3TcpInteroperabilityTestCase, TestCase::QUICK); | 323 AddTestCase (new Ns3TcpInteroperabilityTestCase, TestCase::QUICK); |
323 } | 324 } |
324 | 325 |
325 static Ns3TcpInteroperabilityTestSuite ns3TcpInteroperabilityTestSuite; | 326 static Ns3TcpInteroperabilityTestSuite ns3TcpInteroperabilityTestSuite; |
OLD | NEW |