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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 EpcTft::Direction d, | 107 EpcTft::Direction d, |
108 Ipv4Address sa,· | 108 Ipv4Address sa,· |
109 Ipv4Address da,· | 109 Ipv4Address da,· |
110 uint16_t sp, | 110 uint16_t sp, |
111 uint16_t dp, | 111 uint16_t dp, |
112 uint8_t tos, | 112 uint8_t tos, |
113 uint32_t tftId) | 113 uint32_t tftId) |
114 : TestCase (BuildNameString (c, d, sa, da, sp, dp, tos, tftId)), | 114 : TestCase (BuildNameString (c, d, sa, da, sp, dp, tos, tftId)), |
115 m_c (c), | 115 m_c (c), |
116 m_d (d),···· | 116 m_d (d),···· |
117 m_tftId ((uint8_t)tftId) | 117 m_tftId (static_cast<uint8_t>(tftId)) |
118 { | 118 { |
119 NS_LOG_FUNCTION (this); | 119 NS_LOG_FUNCTION (this); |
120 | 120 |
121 m_ipHeader.SetSource (sa); | 121 m_ipHeader.SetSource (sa); |
122 m_ipHeader.SetDestination (da); | 122 m_ipHeader.SetDestination (da); |
123 m_ipHeader.SetTos (tos);·· | 123 m_ipHeader.SetTos (tos);·· |
124 | 124 |
125 m_udpHeader.SetSourcePort (sp); | 125 m_udpHeader.SetSourcePort (sp); |
126 m_udpHeader.SetDestinationPort (dp);·· | 126 m_udpHeader.SetDestinationPort (dp);·· |
127 } | 127 } |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 Ptr<EpcTft> tft4_2 = Create<EpcTft> (); | 361 Ptr<EpcTft> tft4_2 = Create<EpcTft> (); |
362 tft4_2->Add (pf1_2_4); | 362 tft4_2->Add (pf1_2_4); |
363 c4->Add (tft4_2, 2); | 363 c4->Add (tft4_2, 2); |
364 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 3489, 0, 0), TestCase::QU
ICK); | 364 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 3489, 0, 0), TestCase::QU
ICK); |
365 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 7895, 0, 1), TestCase::QU
ICK); | 365 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 7895, 0, 1), TestCase::QU
ICK); |
366 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::UPLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 7895, 10, 0, 1), TestCase::QU
ICK); | 366 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::UPLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 7895, 10, 0, 1), TestCase::QU
ICK); |
367 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::UPLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 5897, 0, 2), TestCase::QU
ICK); | 367 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::UPLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 5897, 0, 2), TestCase::QU
ICK); |
368 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 5897, 10, 0, 2), TestCase::QU
ICK); | 368 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 5897, 10, 0, 2), TestCase::QU
ICK); |
369 | 369 |
370 } | 370 } |
LEFT | RIGHT |