74 uint16_t localPort = 0;
75 uint16_t remotePort = 0;
80 pCopy->RemoveHeader(ipv4Header);
84 localAddressIpv4 = ipv4Header.
GetSource();
90 remoteAddressIpv4 = ipv4Header.
GetSource();
94 <<
" remote address: " << remoteAddressIpv4);
105 tos = ipv4Header.
GetTos();
111 if (fragmentOffset == 0)
116 pCopy->RemoveHeader(udpHeader);
129 std::tuple<uint32_t, uint32_t, uint8_t, uint16_t> fragmentKey =
141 pCopy->RemoveHeader(tcpHeader);
155 std::tuple<uint32_t, uint32_t, uint8_t, uint16_t> fragmentKey =
173 std::tuple<uint32_t, uint32_t, uint8_t, uint16_t> fragmentKey =
183 localPort = it->second.first;
184 remotePort = it->second.second;
196 pCopy->RemoveHeader(ipv6Header);
200 localAddressIpv6 = ipv6Header.
GetSource();
206 remoteAddressIpv6 = ipv6Header.
GetSource();
210 <<
" remote address: " << remoteAddressIpv6);
218 pCopy->RemoveHeader(udpHeader);
234 pCopy->RemoveHeader(tcpHeader);
249 NS_ABORT_MSG(
"EpcTftClassifier::Classify - Unknown IP type...");
255 <<
" localAddr=" << localAddressIpv4 <<
" remoteAddr=" << remoteAddressIpv4
256 <<
" localPort=" << localPort <<
" remotePort=" << remotePort <<
" tos=0x"
263 std::map<uint32_t, Ptr<EpcTft>>::const_reverse_iterator it;
271 if (tft->Matches(direction,
286 <<
" localAddr=" << localAddressIpv6 <<
" remoteAddr=" << remoteAddressIpv6
287 <<
" localPort=" << localPort <<
" remotePort=" << remotePort <<
" tos=0x"
294 std::map<uint32_t, Ptr<EpcTft>>::const_reverse_iterator it;
302 if (tft->Matches(direction,
std::map< std::tuple< uint32_t, uint32_t, uint8_t, uint16_t >, std::pair< uint32_t, uint32_t > > m_classifiedIpv4Fragments
Map with already classified IPv4 Fragments An entry is added when the port info is available,...
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...