5G-LENA nr-v3.3-159-ga6832aa7
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::NrEpcTft::PacketFilter Struct Reference

#include "nr-epc-tft.h"

Public Member Functions

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
 
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
 

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

Definition at line 57 of file nr-epc-tft.h.

Constructor & Destructor Documentation

◆ PacketFilter()

ns3::NrEpcTft::PacketFilter::PacketFilter ( )

Definition at line 64 of file nr-epc-tft.cc.

Member Function Documentation

◆ Matches() [1/2]

bool ns3::NrEpcTft::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.

Definition at line 80 of file nr-epc-tft.cc.

◆ Matches() [2/2]

bool ns3::NrEpcTft::PacketFilter::Matches ( Direction  d,
Ipv6Address  ra,
Ipv6Address  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.

Definition at line 148 of file nr-epc-tft.cc.

Member Data Documentation

◆ direction

Direction ns3::NrEpcTft::PacketFilter::direction

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

Definition at line 104 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ localAddress

Ipv4Address ns3::NrEpcTft::PacketFilter::localAddress

IPv4 address of the UE.

Definition at line 108 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ localIpv6Address

Ipv6Address ns3::NrEpcTft::PacketFilter::localIpv6Address

IPv6 address of the UE.

Definition at line 113 of file nr-epc-tft.h.

◆ localIpv6Prefix

Ipv6Prefix ns3::NrEpcTft::PacketFilter::localIpv6Prefix

IPv6 address prefix of the UE.

Definition at line 114 of file nr-epc-tft.h.

◆ localMask

Ipv4Mask ns3::NrEpcTft::PacketFilter::localMask

IPv4 address mask of the UE.

Definition at line 109 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ localPortEnd

uint16_t ns3::NrEpcTft::PacketFilter::localPortEnd

end of the port number range of the UE

Definition at line 119 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ localPortStart

uint16_t ns3::NrEpcTft::PacketFilter::localPortStart

start of the port number range of the UE

Definition at line 118 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ precedence

uint8_t ns3::NrEpcTft::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 101 of file nr-epc-tft.h.

Referenced by ns3::NrEpcTft::Add(), and ns3::NrGtpcIes::DeserializeBearerTft().

◆ remoteAddress

Ipv4Address ns3::NrEpcTft::PacketFilter::remoteAddress

IPv4 address of the remote host.

Definition at line 106 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ remoteIpv6Address

Ipv6Address ns3::NrEpcTft::PacketFilter::remoteIpv6Address

IPv6 address of the remote host.

Definition at line 111 of file nr-epc-tft.h.

◆ remoteIpv6Prefix

Ipv6Prefix ns3::NrEpcTft::PacketFilter::remoteIpv6Prefix

IPv6 address prefix of the remote host.

Definition at line 112 of file nr-epc-tft.h.

◆ remoteMask

Ipv4Mask ns3::NrEpcTft::PacketFilter::remoteMask

IPv4 address mask of the remote host.

Definition at line 107 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ remotePortEnd

uint16_t ns3::NrEpcTft::PacketFilter::remotePortEnd

end of the port number range of the remote host

Definition at line 117 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ remotePortStart

uint16_t ns3::NrEpcTft::PacketFilter::remotePortStart

start of the port number range of the remote host

Definition at line 116 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ typeOfService

uint8_t ns3::NrEpcTft::PacketFilter::typeOfService

type of service field

Definition at line 121 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().

◆ typeOfServiceMask

uint8_t ns3::NrEpcTft::PacketFilter::typeOfServiceMask

type of service field mask

Definition at line 122 of file nr-epc-tft.h.

Referenced by ns3::NrGtpcIes::DeserializeBearerTft().


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