24 #include "ns3/packet.h"
25 #include "ns3/ipv4-header.h"
26 #include "ns3/ipv6-header.h"
27 #include "ns3/udp-header.h"
28 #include "ns3/tcp-header.h"
29 #include "ns3/ipv4-l3-protocol.h"
30 #include "ns3/ipv6-l3-protocol.h"
31 #include "ns3/udp-l4-protocol.h"
32 #include "ns3/tcp-l4-protocol.h"
34 #include "ns3/epc-tft-classifier.h"
113 virtual void DoRun (
void);
126 :
TestCase (BuildNameString (c, d, sa, da, sp, dp, tos, tftId, useIpv6)),
132 NS_LOG_FUNCTION (
this << c << d << sa << da << sp << dp << tos << tftId << useIpv6);
170 std::ostringstream oss;
175 oss <<
", sa = " << Ipv6Address::MakeIpv4MappedAddress (
Ipv4Address (sa.c_str ()))
176 <<
", da = " << Ipv6Address::MakeIpv4MappedAddress (
Ipv4Address (da.c_str ()));
180 oss <<
", sa = " << sa
183 oss <<
", sp = " << sp
185 <<
", tos = 0x" << std::hex << (int) tos
186 <<
" --> tftId = " << tftId;
208 m_useIpv6 ? Ipv6L3Protocol::PROT_NUMBER : Ipv4L3Protocol::PROT_NUMBER);
242 for (
bool useIpv6: {
false,
true})
267 tft1_1->
Add (pf1_1_1);
284 tft1_1->
Add (pf1_1_2);
293 tft1_2->
Add (pf1_2_1);
298 tft1_2->
Add (pf1_2_2);
303 tft1_2->
Add (pf1_2_3);
308 tft1_2->
Add (pf1_2_4);
349 c2->
Add (EpcTft::Default (), 1);
384 c3->
Add (EpcTft::Default (), 1);
422 tft4_1->
Add (pf1_2_3);
425 tft4_2->
Add (pf1_2_4);