author | Nicola Baldo <nbaldo@cttc.es> |
Mon, 04 Feb 2013 18:47:25 +0100 | |
changeset 9653 | 382d27da8905 |
parent 8463 | cc818aa536a5 |
child 10425 | 1867d8c25aa7 |
permissions | -rw-r--r-- |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
2 |
/* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
3 |
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
4 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
8 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
13 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
17 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
18 |
* Author: Nicola Baldo <nbaldo@cttc.es> |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
19 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
20 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
21 |
|
8463 | 22 |
#ifndef EPC_TFT_H |
23 |
#define EPC_TFT_H |
|
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
24 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
25 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
26 |
#include <ns3/simple-ref-count.h> |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
27 |
#include <ns3/ipv4-address.h> |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
28 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
29 |
#include <list> |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
30 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
31 |
namespace ns3 { |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
32 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
33 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
34 |
|
8355 | 35 |
/** |
36 |
* This class implements the EPS bearer Traffic Flow Template (TFT), |
|
37 |
* which is the set of all packet filters associated with an EPS bearer. |
|
38 |
* |
|
39 |
*/ |
|
8463 | 40 |
class EpcTft : public SimpleRefCount<EpcTft> |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
41 |
{ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
42 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
43 |
public: |
8380 | 44 |
|
45 |
||
46 |
/** |
|
47 |
* creates a TFT matching any traffic |
|
48 |
* |
|
49 |
* \return a newly created TFT that will match any traffic |
|
50 |
*/ |
|
8463 | 51 |
static Ptr<EpcTft> Default (); |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
52 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
53 |
/** |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
54 |
* Indicates the direction of the traffic that is to be classified. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
55 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
56 |
enum Direction {DOWNLINK = 1, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
57 |
UPLINK = 2, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
58 |
BIDIRECTIONAL = 3}; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
59 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
60 |
/** |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
61 |
* Implement the data structure representing a TrafficFlowTemplate |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
62 |
* Packet Filter. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
63 |
* See 3GPP TS 24.008 version 8.7.0 Release 8, Table 10.5.162/3GPP TS |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
64 |
* 24.008: Traffic flow template information element |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
65 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
66 |
* With respect to the Packet Filter specification in the above doc, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
67 |
* the following features are NOT supported: |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
68 |
* - IPv6 filtering (including flow labels) |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
69 |
* - IPSec filtering |
8355 | 70 |
* - filter precedence field is not evaluated, hence it is recommended to setup |
71 |
* the TFTs within a PDP context such that TFTs are mutually exclusive |
|
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
72 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
73 |
struct PacketFilter |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
74 |
{ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
75 |
PacketFilter (); |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
76 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
77 |
/** |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
78 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
79 |
* \param d the direction |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
80 |
* \param ra the remote address |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
81 |
* \param la the local address |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
82 |
* \param rp the remote port |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
83 |
* \param lp the local port |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
84 |
* \param tos the type of service |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
85 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
86 |
* \return true if the parameters match with the PacketFilter, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
87 |
* false otherwise. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
88 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
89 |
bool Matches (Direction d, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
90 |
Ipv4Address ra, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
91 |
Ipv4Address la, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
92 |
uint16_t rp, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
93 |
uint16_t lp, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
94 |
uint8_t tos); |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
95 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
96 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
97 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
98 |
uint8_t precedence; /**< used to specify the precedence for the |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
99 |
* packet filter among all packet filters in |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
100 |
* the TFT; higher values will be evaluated |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
101 |
* last. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
102 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
103 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
104 |
Direction direction; /**< whether the filter needs to be applied |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
105 |
to uplink / downlink only, or in both cases*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
106 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
107 |
Ipv4Address remoteAddress; /**< IPv4 address of the remote host */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
108 |
Ipv4Mask remoteMask; /**< IPv4 address mask of the remote host */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
109 |
Ipv4Address localAddress; /**< IPv4 address of the UE */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
110 |
Ipv4Mask localMask; /**< IPv4 address mask of the UE */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
111 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
112 |
uint16_t remotePortStart; /**< start of the port number range of the remote host */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
113 |
uint16_t remotePortEnd; /**< end of the port number range of the remote host */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
114 |
uint16_t localPortStart; /**< start of the port number range of the UE */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
115 |
uint16_t localPortEnd; /**< end of the port number range of the UE */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
116 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
117 |
uint8_t typeOfService; /**< type of service field */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
118 |
uint8_t typeOfServiceMask; /**< type of service field mask */ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
119 |
}; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
120 |
|
8463 | 121 |
EpcTft (); |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
122 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
123 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
124 |
/** |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
125 |
* add a PacketFilter to the Traffic Flow Template |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
126 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
127 |
* \param the PacketFilter to be added |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
128 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
129 |
* \return the id( 0 <= id < 16) of the newly added filter, if the addition was successful. Will fail if you try to add more than 15 filters. This is to be compliant with TS 24.008. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
130 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
131 |
uint8_t Add (PacketFilter f); |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
132 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
133 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
134 |
/** |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
135 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
136 |
* \param direction |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
137 |
* \param remoteAddress |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
138 |
* \param localAddress |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
139 |
* \param remotePort |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
140 |
* \param localPort |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
141 |
* \param typeOfService |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
142 |
* |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
143 |
* \return true if any PacketFilter in the TFT matches with the |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
144 |
* parameters, false otherwise. |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
145 |
*/ |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
146 |
bool Matches (Direction direction, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
147 |
Ipv4Address remoteAddress, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
148 |
Ipv4Address localAddress, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
149 |
uint16_t remotePort, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
150 |
uint16_t localPort, |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
151 |
uint8_t typeOfService); |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
152 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
153 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
154 |
private: |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
155 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
156 |
std::list<PacketFilter> m_filters; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
157 |
uint8_t m_numFilters; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
158 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
159 |
}; |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
160 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
161 |
|
8463 | 162 |
std::ostream& operator<< (std::ostream& os, EpcTft::Direction& d); |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
163 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
164 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
165 |
} // namespace ns3 |
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
166 |
|
8463 | 167 |
#endif /* EPC_TFT_H */ |
8353
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
168 |
|
ffba8013fd1d
TFT classifier working with minimal test
Nicola Baldo <nbaldo@cttc.es>
parents:
diff
changeset
|
169 |