ns-3
|
Classes | |
struct | ipv4Addr |
struct | PortRange |
Public Member Functions | |
IpcsClassifierRecord (Ipv4Address srcAddress, Ipv4Mask srcMask, Ipv4Address dstAddress, Ipv4Mask dstMask, uint16_t srcPortLow, uint16_t srcPortHigh, uint16_t dstPortLow, uint16_t dstPortHigh, uint8_t protocol, uint8_t priority) | |
creates a classifier records and sets all its parameters | |
IpcsClassifierRecord (Tlv tlv) | |
Decodes a TLV and creates a classifier. | |
Tlv | ToTlv (void) const |
Creates a TLV from this classifier. | |
void | AddSrcAddr (Ipv4Address srcAddress, Ipv4Mask srcMask) |
add a new source ip address to the classifier | |
void | AddDstAddr (Ipv4Address dstAddress, Ipv4Mask dstMask) |
add a new destination ip address to the classifier | |
void | AddSrcPortRange (uint16_t srcPortLow, uint16_t srcPortHigh) |
add a range of source port to the classifier | |
void | AddDstPortRange (uint16_t dstPortLow, uint16_t dstPortHigh) |
add a range of destination port to the classifier | |
void | AddProtocol (uint8_t proto) |
add a protocol to the classifier | |
void | SetPriority (uint8_t prio) |
Set the priority of this classifier. | |
void | SetIndex (uint16_t index) |
Set the index of the classifier. | |
bool | CheckMatch (Ipv4Address srcAddress, Ipv4Address dstAddress, uint16_t srcPort, uint16_t dstPort, uint8_t proto) const |
check if a packets can be used with this classifier | |
uint16_t | GetCid (void) const |
uint8_t | GetPriority (void) const |
uint16_t | GetIndex (void) const |
void | SetCid (uint16_t cid) |
Set the cid associated to this classifier. |
ns3::IpcsClassifierRecord::IpcsClassifierRecord | ( | Ipv4Address | srcAddress, |
Ipv4Mask | srcMask, | ||
Ipv4Address | dstAddress, | ||
Ipv4Mask | dstMask, | ||
uint16_t | srcPortLow, | ||
uint16_t | srcPortHigh, | ||
uint16_t | dstPortLow, | ||
uint16_t | dstPortHigh, | ||
uint8_t | protocol, | ||
uint8_t | priority | ||
) |
creates a classifier records and sets all its parameters
srcAddress | the source ip address |
srcMask | the mask to apply on the source ip address |
dstAddress | the destination ip address |
dstMask | the mask to apply on the destination ip address |
srcPortLow | the lower boundary of the source port range |
srcPortHigh | the higher boundary of the source port range |
dstPortLow | the lower boundary of the destination port range |
dstPortHigh | the higher boundary of the destination port range |
protocol | the L4 protocol |
priority | the priority of this classifier |
References AddDstAddr(), AddDstPortRange(), AddSrcAddr(), and AddSrcPortRange().
ns3::IpcsClassifierRecord::IpcsClassifierRecord | ( | Tlv | tlv | ) |
Decodes a TLV and creates a classifier.
tlv | the TLV to decode and from which the classifier parameters will be extracted |
References AddDstAddr(), AddDstPortRange(), AddProtocol(), AddSrcAddr(), AddSrcPortRange(), NS_ASSERT_MSG, and NS_FATAL_ERROR.
void ns3::IpcsClassifierRecord::AddDstAddr | ( | Ipv4Address | dstAddress, |
Ipv4Mask | dstMask | ||
) |
add a new destination ip address to the classifier
dstAddress | the destination ip address |
dstMask | the mask to apply on the destination ip address |
Referenced by IpcsClassifierRecord().
void ns3::IpcsClassifierRecord::AddDstPortRange | ( | uint16_t | dstPortLow, |
uint16_t | dstPortHigh | ||
) |
add a range of destination port to the classifier
dstPortLow | the lower boundary of the destination port range |
dstPortHigh | the higher boundary of the destination port range |
Referenced by IpcsClassifierRecord().
void ns3::IpcsClassifierRecord::AddProtocol | ( | uint8_t | proto | ) |
add a protocol to the classifier
proto | the L4 protocol to add |
Referenced by IpcsClassifierRecord().
void ns3::IpcsClassifierRecord::AddSrcAddr | ( | Ipv4Address | srcAddress, |
Ipv4Mask | srcMask | ||
) |
add a new source ip address to the classifier
srcAddress | the source ip address |
srcMask | the mask to apply on the source ip address |
Referenced by IpcsClassifierRecord().
void ns3::IpcsClassifierRecord::AddSrcPortRange | ( | uint16_t | srcPortLow, |
uint16_t | srcPortHigh | ||
) |
add a range of source port to the classifier
srcPortLow | the lower boundary of the source port range |
srcPortHigh | the higher boundary of the source port range |
Referenced by IpcsClassifierRecord().
bool ns3::IpcsClassifierRecord::CheckMatch | ( | Ipv4Address | srcAddress, |
Ipv4Address | dstAddress, | ||
uint16_t | srcPort, | ||
uint16_t | dstPort, | ||
uint8_t | proto | ||
) | const |
check if a packets can be used with this classifier
srcAddress | the source ip address of the packet |
dstAddress | the destination ip address of the packet |
srcPort | the source port of the packet |
dstPort | the destination port of the packet |
proto | The L4 protocol of the packet |
Referenced by ns3::ServiceFlow::CheckClassifierMatch(), and ns3::RrcEntity::Classify().
uint16_t ns3::IpcsClassifierRecord::GetCid | ( | void | ) | const |
uint16_t ns3::IpcsClassifierRecord::GetIndex | ( | void | ) | const |
uint8_t ns3::IpcsClassifierRecord::GetPriority | ( | void | ) | const |
void ns3::IpcsClassifierRecord::SetCid | ( | uint16_t | cid | ) |
Set the cid associated to this classifier.
cid | the connection identifier |
void ns3::IpcsClassifierRecord::SetIndex | ( | uint16_t | index | ) |
Set the index of the classifier.
index | the index of the classifier |
void ns3::IpcsClassifierRecord::SetPriority | ( | uint8_t | prio | ) |
Set the priority of this classifier.
prio | the priority of the classifier |
Tlv ns3::IpcsClassifierRecord::ToTlv | ( | void | ) | const |
Creates a TLV from this classifier.
Referenced by ns3::CsParameters::ToTlv().