23 #include <ns3/ipv4-address.h>
24 #include <ns3/ipv6-address.h>
25 #include <ns3/simple-ref-count.h>
167 uint8_t typeOfService);
186 uint8_t typeOfService);
double f(double x, void *params)
This class implements the EPS bearer Traffic Flow Template (TFT), which is the set of all packet filt...
uint8_t Add(PacketFilter f)
add a PacketFilter to the Traffic Flow Template
bool Matches(Direction direction, Ipv4Address remoteAddress, Ipv4Address localAddress, uint16_t remotePort, uint16_t localPort, uint8_t typeOfService)
static Ptr< EpcTft > Default()
creates a TFT matching any traffic
std::list< PacketFilter > GetPacketFilters() const
Get the packet filters.
Direction
Indicates the direction of the traffic that is to be classified.
std::list< PacketFilter > m_filters
packet filter list
uint8_t m_numFilters
number of packet filters applied to this TFT
Ipv4 addresses are stored in host order in this class.
a class to represent an Ipv4 address mask
Describes an IPv6 address.
Describes an IPv6 prefix.
Smart pointer class similar to boost::intrusive_ptr.
A template-based reference counting class.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Implement the data structure representing a TrafficFlowTemplate Packet Filter.
Ipv4Address localAddress
IPv4 address of the UE.
Ipv6Prefix localIpv6Prefix
IPv6 address prefix of the UE.
uint16_t localPortEnd
end of the port number range of the UE
bool Matches(Direction d, Ipv4Address ra, Ipv4Address la, uint16_t rp, uint16_t lp, uint8_t tos)
Ipv4Mask localMask
IPv4 address mask of the UE.
uint16_t remotePortEnd
end of the port number range of the remote host
Ipv6Address remoteIpv6Address
IPv6 address of the remote host.
uint8_t precedence
Used to specify the precedence for the packet filter among all packet filters in the TFT; higher valu...
Direction direction
Whether the filter needs to be applied to uplink / downlink only, or in both cases.
Ipv4Mask remoteMask
IPv4 address mask of the remote host.
uint16_t remotePortStart
start of the port number range of the remote host
Ipv6Address localIpv6Address
IPv6 address of the UE.
uint8_t typeOfService
type of service field
Ipv4Address remoteAddress
IPv4 address of the remote host.
uint8_t typeOfServiceMask
type of service field mask
Ipv6Prefix remoteIpv6Prefix
IPv6 address prefix of the remote host.
uint16_t localPortStart
start of the port number range of the UE