Implement the data structure representing a TrafficFlowTemplate Packet Filter. More...
#include "epc-tft.h"
Public Member Functions | |
| PacketFilter () | |
| bool | Matches (Direction d, Ipv4Address ra, Ipv4Address la, uint16_t rp, uint16_t lp, uint8_t tos) |
| bool | Matches (Direction d, Ipv6Address ra, Ipv6Address la, uint16_t rp, uint16_t lp, uint8_t tos) |
Public Attributes | |
| Direction | direction |
| Whether the filter needs to be applied to uplink / downlink only, or in both cases. | |
| Ipv4Address | localAddress |
| IPv4 address of the UE. | |
| Ipv6Address | localIpv6Address |
| IPv6 address of the UE. | |
| Ipv6Prefix | localIpv6Prefix |
| IPv6 address prefix of the UE. | |
| Ipv4Mask | localMask |
| IPv4 address mask of the UE. | |
| uint16_t | localPortEnd |
| end of the port number range of the UE | |
| uint16_t | localPortStart |
| start of the port number range of the UE | |
| uint8_t | precedence |
| Used to specify the precedence for the packet filter among all packet filters in the TFT; higher values will be evaluated last. | |
| Ipv4Address | remoteAddress |
| IPv4 address of the remote host. | |
| Ipv6Address | remoteIpv6Address |
| IPv6 address of the remote host. | |
| Ipv6Prefix | remoteIpv6Prefix |
| IPv6 address prefix of the remote host. | |
| Ipv4Mask | remoteMask |
| IPv4 address mask of the remote host. | |
| uint16_t | remotePortEnd |
| end of the port number range of the remote host | |
| uint16_t | remotePortStart |
| start of the port number range of the remote host | |
| uint8_t | typeOfService |
| type of service field | |
| uint8_t | typeOfServiceMask |
| type of service field mask | |
Implement the data structure representing a TrafficFlowTemplate Packet Filter.
See 3GPP TS 24.008 version 8.7.0 Release 8, Table 10.5.162/3GPP TS 24.008: Traffic flow template information element
With respect to the Packet Filter specification in the above doc, the following features are NOT supported:
| ns3::EpcTft::PacketFilter::PacketFilter | ( | ) |
Definition at line 66 of file epc-tft.cc.
References ns3::EpcTft::BIDIRECTIONAL, direction, localMask, localPortEnd, localPortStart, NS_LOG_FUNCTION, precedence, remoteMask, remotePortEnd, remotePortStart, typeOfService, and typeOfServiceMask.
| bool ns3::EpcTft::PacketFilter::Matches | ( | Direction | d, |
| Ipv4Address | ra, | ||
| Ipv4Address | la, | ||
| uint16_t | rp, | ||
| uint16_t | lp, | ||
| uint8_t | tos ) |
| d | the direction |
| ra | the remote address |
| la | the local address |
| rp | the remote port |
| lp | the local port |
| tos | the type of service |
Definition at line 82 of file epc-tft.cc.
References direction, localAddress, localMask, localPortEnd, localPortStart, NS_LOG_FUNCTION, NS_LOG_LOGIC, remoteAddress, remoteMask, remotePortEnd, remotePortStart, typeOfService, and typeOfServiceMask.
| bool ns3::EpcTft::PacketFilter::Matches | ( | Direction | d, |
| Ipv6Address | ra, | ||
| Ipv6Address | la, | ||
| uint16_t | rp, | ||
| uint16_t | lp, | ||
| uint8_t | tos ) |
| d | the direction |
| ra | the remote address |
| la | the local address |
| rp | the remote port |
| lp | the local port |
| tos | the type of service |
Definition at line 150 of file epc-tft.cc.
References direction, localIpv6Address, localIpv6Prefix, localPortEnd, localPortStart, NS_LOG_FUNCTION, NS_LOG_LOGIC, remoteIpv6Address, remoteIpv6Prefix, remotePortEnd, remotePortStart, typeOfService, and typeOfServiceMask.
| Direction ns3::EpcTft::PacketFilter::direction |
Whether the filter needs to be applied to uplink / downlink only, or in both cases.
Definition at line 106 of file epc-tft.h.
Referenced by PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), Matches(), and ns3::operator<<().
| Ipv4Address ns3::EpcTft::PacketFilter::localAddress |
IPv4 address of the UE.
Definition at line 110 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), and ns3::operator<<().
| Ipv6Address ns3::EpcTft::PacketFilter::localIpv6Address |
IPv6 address of the UE.
Definition at line 115 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), Matches(), and ns3::operator<<().
| Ipv6Prefix ns3::EpcTft::PacketFilter::localIpv6Prefix |
IPv6 address prefix of the UE.
Definition at line 116 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), Matches(), and ns3::operator<<().
| Ipv4Mask ns3::EpcTft::PacketFilter::localMask |
IPv4 address mask of the UE.
Definition at line 111 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), and ns3::operator<<().
| uint16_t ns3::EpcTft::PacketFilter::localPortEnd |
end of the port number range of the UE
Definition at line 121 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), LteDistributedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), Matches(), Matches(), and ns3::operator<<().
| uint16_t ns3::EpcTft::PacketFilter::localPortStart |
start of the port number range of the UE
Definition at line 120 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), LteDistributedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), Matches(), Matches(), and ns3::operator<<().
| uint8_t ns3::EpcTft::PacketFilter::precedence |
Used to specify the precedence for the packet filter among all packet filters in the TFT; higher values will be evaluated last.
Definition at line 103 of file epc-tft.h.
Referenced by PacketFilter(), ns3::EpcTft::Add(), and ns3::GtpcIes::DeserializeBearerTft().
| Ipv4Address ns3::EpcTft::PacketFilter::remoteAddress |
IPv4 address of the remote host.
Definition at line 108 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), and ns3::operator<<().
| Ipv6Address ns3::EpcTft::PacketFilter::remoteIpv6Address |
IPv6 address of the remote host.
Definition at line 113 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), Matches(), and ns3::operator<<().
| Ipv6Prefix ns3::EpcTft::PacketFilter::remoteIpv6Prefix |
IPv6 address prefix of the remote host.
Definition at line 114 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), Matches(), and ns3::operator<<().
| Ipv4Mask ns3::EpcTft::PacketFilter::remoteMask |
IPv4 address mask of the remote host.
Definition at line 109 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), and ns3::operator<<().
| uint16_t ns3::EpcTft::PacketFilter::remotePortEnd |
end of the port number range of the remote host
Definition at line 119 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), LteDistributedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), Matches(), Matches(), and ns3::operator<<().
| uint16_t ns3::EpcTft::PacketFilter::remotePortStart |
start of the port number range of the remote host
Definition at line 118 of file epc-tft.h.
Referenced by EpcTftClassifierTestSuite::EpcTftClassifierTestSuite(), PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), LteDistributedFfrAreaTestCase::DoRun(), LteEpcE2eDataTestCase::DoRun(), LteRadioLinkFailureTestCase::DoRun(), LteX2HandoverMeasuresTestCase::DoRun(), LteX2HandoverTestCase::DoRun(), Matches(), Matches(), and ns3::operator<<().
| uint8_t ns3::EpcTft::PacketFilter::typeOfService |
type of service field
Definition at line 123 of file epc-tft.h.
Referenced by PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), Matches(), and ns3::operator<<().
| uint8_t ns3::EpcTft::PacketFilter::typeOfServiceMask |
type of service field mask
Definition at line 124 of file epc-tft.h.
Referenced by PacketFilter(), ns3::GtpcIes::DeserializeBearerTft(), Matches(), Matches(), and ns3::operator<<().