ns-3
ns3::EpcTft::PacketFilter Struct Reference

#include <epc-tft.h>

Collaboration diagram for ns3::EpcTft::PacketFilter:

List of all members.

Public Member Functions

bool Matches (Direction d, Ipv4Address ra, Ipv4Address la, uint16_t rp, uint16_t lp, uint8_t tos)

Public Attributes

uint8_t precedence
Direction direction
Ipv4Address remoteAddress
Ipv4Mask remoteMask
Ipv4Address localAddress
Ipv4Mask localMask
uint16_t remotePortStart
uint16_t remotePortEnd
uint16_t localPortStart
uint16_t localPortEnd
uint8_t typeOfService
uint8_t typeOfServiceMask

Detailed Description

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:

  • IPv6 filtering (including flow labels)
  • IPSec filtering
  • filter precedence field is not evaluated, hence it is recommended to setup the TFTs within a PDP context such that TFTs are mutually exclusive

Member Function Documentation

bool ns3::EpcTft::PacketFilter::Matches ( Direction  d,
Ipv4Address  ra,
Ipv4Address  la,
uint16_t  rp,
uint16_t  lp,
uint8_t  tos 
)
Parameters:
dthe direction
rathe remote address
lathe local address
rpthe remote port
lpthe local port
tosthe type of service
Returns:
true if the parameters match with the PacketFilter, false otherwise.

References direction, ns3::Ipv4Mask::IsMatch(), localAddress, localMask, localPortEnd, localPortStart, NS_LOG_FUNCTION, NS_LOG_LOGIC, remoteAddress, remoteMask, remotePortEnd, remotePortStart, typeOfService, and typeOfServiceMask.


Member Data Documentation

Direction ns3::EpcTft::PacketFilter::direction

whether the filter needs to be applied to uplink / downlink only, or in both cases

Referenced by Matches().

Ipv4Address ns3::EpcTft::PacketFilter::localAddress

IPv4 address of the UE

Referenced by Matches().

Ipv4Mask ns3::EpcTft::PacketFilter::localMask

IPv4 address mask of the UE

Referenced by Matches().

uint16_t ns3::EpcTft::PacketFilter::localPortEnd

end of the port number range of the UE

Referenced by Matches().

uint16_t ns3::EpcTft::PacketFilter::localPortStart

start of the port number range of the UE

Referenced by Matches().

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.

Referenced by ns3::EpcTft::Add().

Ipv4Address ns3::EpcTft::PacketFilter::remoteAddress

IPv4 address of the remote host

Referenced by Matches().

Ipv4Mask ns3::EpcTft::PacketFilter::remoteMask

IPv4 address mask of the remote host

Referenced by Matches().

uint16_t ns3::EpcTft::PacketFilter::remotePortEnd

end of the port number range of the remote host

Referenced by Matches().

uint16_t ns3::EpcTft::PacketFilter::remotePortStart

start of the port number range of the remote host

Referenced by Matches().

uint8_t ns3::EpcTft::PacketFilter::typeOfService

type of service field

Referenced by Matches().

uint8_t ns3::EpcTft::PacketFilter::typeOfServiceMask

type of service field mask

Referenced by Matches().


The documentation for this struct was generated from the following files: