LEFT | RIGHT |
(no file at all) | |
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 (tftId) | 117 m_tftId (static_cast<uint8_t> (tftId)) |
118 { | 118 { |
119 NS_LOG_FUNCTION (this << c << d << sa << da << sp << dp << tos << tftId); | 119 NS_LOG_FUNCTION (this << c << d << sa << da << sp << dp << tos << tftId); |
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 m_ipHeader.SetPayloadSize (8); // Full UDP header | 124 m_ipHeader.SetPayloadSize (8); // Full UDP header |
125 | 125 |
126 m_udpHeader.SetSourcePort (sp); | 126 m_udpHeader.SetSourcePort (sp); |
127 m_udpHeader.SetDestinationPort (dp); | 127 m_udpHeader.SetDestinationPort (dp); |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 Ptr<EpcTft> tft4_2 = Create<EpcTft> (); | 362 Ptr<EpcTft> tft4_2 = Create<EpcTft> (); |
363 tft4_2->Add (pf1_2_4); | 363 tft4_2->Add (pf1_2_4); |
364 c4->Add (tft4_2, 2); | 364 c4->Add (tft4_2, 2); |
365 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, 3489, 0, 0), TestCase::QU
ICK); |
366 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::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 7895, 0, 1), TestCase::QU
ICK); |
367 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"), 7895, 10, 0, 1), TestCase::QU
ICK); |
368 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::UPLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 9, 5897, 0, 2), TestCase::QU
ICK); |
369 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 5897, 10, 0, 2), TestCase::QU
ICK); | 369 AddTestCase (new EpcTftClassifierTestCase (c4, EpcTft::DOWNLINK, Ipv4Address (
"9.1.1.1"), Ipv4Address ("8.1.1.1"), 5897, 10, 0, 2), TestCase::QU
ICK); |
370 | 370 |
371 } | 371 } |
LEFT | RIGHT |