author | Nicola Baldo <nbaldo@cttc.es> |
Mon, 04 Feb 2013 18:47:25 +0100 | |
changeset 9653 | 382d27da8905 |
parent 8357 | 7bb52f00c205 |
permissions | -rw-r--r-- |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
2 |
/* |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
3 |
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
4 |
* |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
8 |
* |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
13 |
* |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
17 |
* |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
18 |
* Author: Jaume Nin <jnin@cttc.cat> |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
19 |
*/ |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
20 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
21 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
22 |
#ifndef EPS_GTPU_V1_H |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
23 |
#define EPS_GTPU_V1_H |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
24 |
|
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
25 |
#include <ns3/ptr.h> |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
26 |
#include <ns3/header.h> |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
27 |
#include <ns3/ipv4-header.h> |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
28 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
29 |
namespace ns3 { |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
30 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
31 |
class Packet; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
32 |
|
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
33 |
|
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
34 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
35 |
* \ingroup lte |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
36 |
* |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
37 |
* Implementation of the GTPv1-U Release 10 as per 3Gpp TS 29.281 document |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
38 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
39 |
class GtpuHeader : public Header |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
40 |
{ |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
41 |
public: |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
42 |
static TypeId GetTypeId (void); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
43 |
GtpuHeader (); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
44 |
virtual ~GtpuHeader (); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
45 |
virtual TypeId GetInstanceTypeId (void) const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
46 |
virtual uint32_t GetSerializedSize (void) const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
47 |
virtual void Serialize (Buffer::Iterator start) const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
48 |
virtual uint32_t Deserialize (Buffer::Iterator start); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
49 |
virtual void Print (std::ostream &os) const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
50 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
51 |
bool GetExtensionHeaderFlag () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
52 |
uint16_t GetLength () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
53 |
uint8_t GetMessageType () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
54 |
uint8_t GetNPduNumber () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
55 |
bool GetNPduNumberFlag () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
56 |
uint8_t GetNextExtensionType () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
57 |
bool GetProtocolType () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
58 |
uint16_t GetSequenceNumber () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
59 |
bool GetSequenceNumberFlag () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
60 |
uint32_t GetTeid () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
61 |
uint8_t GetVersion () const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
62 |
void SetExtensionHeaderFlag (bool m_extensionHeaderFlag); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
63 |
void SetLength (uint16_t m_length); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
64 |
void SetMessageType (uint8_t m_messageType); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
65 |
void SetNPduNumber (uint8_t m_nPduNumber); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
66 |
void SetNPduNumberFlag (bool m_nPduNumberFlag); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
67 |
void SetNextExtensionType (uint8_t m_nextExtensionType); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
68 |
void SetProtocolType (bool m_protocolType); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
69 |
void SetSequenceNumber (uint16_t m_sequenceNumber); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
70 |
void SetSequenceNumberFlag (bool m_sequenceNumberFlag); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
71 |
void SetTeid (uint32_t m_teid); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
72 |
void SetVersion (uint8_t m_version); |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
73 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
74 |
bool operator == (const GtpuHeader& b) const; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
75 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
76 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
77 |
private: |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
78 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
79 |
* This field is used to determine the version of the GTPU-U protocol. The version number shall be set to 1. |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
80 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
81 |
uint8_t m_version; // really a 3 uint3_t |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
82 |
|
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
83 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
84 |
* This bit is used as a protocol discriminator between GTP (when PT is '1') and GTP' (when |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
85 |
* PT is '0'). |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
86 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
87 |
bool m_protocolType; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
88 |
|
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
89 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
90 |
* This flag indicates the presence of a meaningful value of the Next Extension Header |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
91 |
* field. When it is set to '0', the Next Extension Header field either is not present |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
92 |
* or, if present, shall not be interpreted. When it is set to '1', the Next Extension |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
93 |
* Header field is present, and shall be interpreted |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
94 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
95 |
bool m_extensionHeaderFlag; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
96 |
|
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
97 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
98 |
* This flag indicates the presence of a meaningful value of the Sequence Number field. |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
99 |
* When it is set to '0', the Sequence Number field either is not present or, if present, |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
100 |
* shall not be interpreted. When it is set to '1', the Sequence Number field is present, |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
101 |
* and shall be interpreted |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
102 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
103 |
bool m_sequenceNumberFlag; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
104 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
105 |
* This flag indicates the presence of a meaningful value of the N-PDU Number field. |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
106 |
* When it is set to '0', the N-PDU Number field either is not present, or, if present, |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
107 |
* shall not be interpreted. When it is set to '1', the N-PDU Number field is present, |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
108 |
* and shall be interpreted |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
109 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
110 |
bool m_nPduNumberFlag; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
111 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
112 |
* This field indicates the type of GTP-U message |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
113 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
114 |
uint8_t m_messageType; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
115 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
116 |
* This field indicates the length in octets of the payload, i.e. the rest of the packet |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
117 |
* following the mandatory part of the GTP header (that is the first 8 octets). |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
118 |
* The Sequence Number, the N-PDU Number or any Extension headers shall be considered |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
119 |
* to be part of the payload, i.e. included in the length count |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
120 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
121 |
uint16_t m_length; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
122 |
|
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
123 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
124 |
* This field unambiguously identifies a tunnel endpoint in the receiving GTP-U |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
125 |
* protocol entity. The receiving end side of a GTP tunnel locally assigns the |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
126 |
* TEID value the transmitting side has to use. |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
127 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
128 |
uint32_t m_teid; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
129 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
130 |
* If Sequence Number field is used for G-PDUs (T-PDUs+headers), an increasing |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
131 |
* sequence number for T-PDUs is transmitted via GTP-U tunnels, when transmission |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
132 |
* order must be preserved |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
133 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
134 |
uint16_t m_sequenceNumber; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
135 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
136 |
* This field is used at the Inter SGSN Routeing Area Update procedure and some |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
137 |
* inter-system handover procedures (e.g. between 2G and 3G radio access networks). |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
138 |
* This field is used to co-ordinate the data transmission for acknowledged mode |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
139 |
* of communication between the MS and the SGSN |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
140 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
141 |
uint8_t m_nPduNumber; |
8357
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
142 |
/** |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
143 |
* This field defines the type of Extension Header that follows this field in |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
144 |
* the GTP-PDU |
7bb52f00c205
Refurbished GTP tunneling implementation + documentation
Jaume Nin
parents:
8175
diff
changeset
|
145 |
*/ |
8155
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
146 |
uint8_t m_nextExtensionType; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
147 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
148 |
}; |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
149 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
150 |
} // namespace ns3 |
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
151 |
|
767d483797cb
Added GTPU-v1 header implementation and test case trying header coding and decoding.
jnin
parents:
diff
changeset
|
152 |
#endif /* EPS_GTPU_V1_H */ |