ns-3
|
#include <ipv4-flow-classifier.h>
Classes | |
struct | FiveTuple |
Public Member Functions | |
bool | Classify (const Ipv4Header &ipHeader, Ptr< const Packet > ipPayload, uint32_t *out_flowId, uint32_t *out_packetId) |
try to classify the packet into flow-id and packet-id | |
FiveTuple | FindFlow (FlowId flowId) const |
Searches for the FiveTuple corresponding to the given flowId. | |
virtual void | SerializeToXmlStream (std::ostream &os, int indent) const |
Classifies packets by looking at their IP and TCP/UDP headers. From these packet headers, a tuple (source-ip, destination-ip, protocol, source-port, destination-port) is created, and a unique flow identifier is assigned for each different tuple combination
bool ns3::Ipv4FlowClassifier::Classify | ( | const Ipv4Header & | ipHeader, |
Ptr< const Packet > | ipPayload, | ||
uint32_t * | out_flowId, | ||
uint32_t * | out_packetId | ||
) |
try to classify the packet into flow-id and packet-id
References ns3::Ipv4Address::GetBroadcast(), ns3::Ipv4Header::GetDestination(), ns3::UdpHeader::GetDestinationPort(), ns3::TcpHeader::GetDestinationPort(), ns3::Ipv4Header::GetIdentification(), ns3::Ipv4Header::GetProtocol(), ns3::Ipv4Header::GetSource(), ns3::UdpHeader::GetSourcePort(), ns3::TcpHeader::GetSourcePort(), and ns3::Packet::PeekHeader().