/usr/include/ns3.26/ns3/epc-s1ap-sap.h is in libns3-dev 3.26+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Nicola Baldo <nbaldo@cttc.cat>
*/
#ifndef EPC_S1AP_SAP_H
#define EPC_S1AP_SAP_H
#include <ns3/address.h>
#include <ns3/ptr.h>
#include <ns3/object.h>
#include <ns3/eps-bearer.h>
#include <ns3/epc-tft.h>
#include <list>
namespace ns3 {
class EpcS1apSap
{
public:
virtual ~EpcS1apSap ();
};
/**
* \ingroup lte
*
* MME side of the S1-AP Service Access Point (SAP), provides the MME
* methods to be called when an S1-AP message is received by the MME.
*/
class EpcS1apSapMme : public EpcS1apSap
{
public:
/**
*
* \param mmeUeS1Id in practice, we use the IMSI
* \param enbUeS1Id in practice, we use the RNTI
* \param stmsi in practice, the imsi
* \param ecgi in practice, the cell Id
*
*/
virtual void InitialUeMessage (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, uint64_t stmsi, uint16_t ecgi) = 0;
/**
* E-RAB Release Indication Item IEs, 3GPP TS 36.413 version 9.8.0 section 9.1.3.7
*
*/
struct ErabToBeReleasedIndication
{
uint8_t erabId;
};
/**
* \brief As per 3GPP TS 23.401 Release 9 V9.5.0 Figure 5.4.4.2-1 eNB sends indication of Bearer Release to MME
* \brief As per 3GPP TS version 9.8.0 section 8.2.3.2.2, the eNB initiates the procedure by sending an E-RAB RELEASE INDICATION message towards MME
* \param mmeUeS1Id in practice, we use the IMSI
* \param enbUeS1Id in practice, we use the RNTI
* \param erabToBeReleaseIndication, List of bearers to be deactivated
*
*/
virtual void ErabReleaseIndication (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabToBeReleasedIndication> erabToBeReleaseIndication ) = 0;
/**
* E-RAB Setup Item IEs, see 3GPP TS 36.413 9.1.4.2
*
*/
struct ErabSetupItem
{
uint16_t erabId;
Ipv4Address enbTransportLayerAddress;
uint32_t enbTeid;
};
/**
* INITIAL CONTEXT SETUP RESPONSE message, see 3GPP TS 36.413 9.1.4.2
*
* \param mmeUeS1Id in practice, we use the IMSI
* \param enbUeS1Id in practice, we use the RNTI
* \param erabSetupList
*
*/
virtual void InitialContextSetupResponse (uint64_t mmeUeS1Id,
uint16_t enbUeS1Id,
std::list<ErabSetupItem> erabSetupList) = 0;
/**
* E-RABs Switched in Downlink Item IE, see 3GPP TS 36.413 9.1.5.8
*
*/
struct ErabSwitchedInDownlinkItem
{
uint16_t erabId;
Ipv4Address enbTransportLayerAddress;
uint32_t enbTeid;
};
/**
* PATH SWITCH REQUEST message, see 3GPP TS 36.413 9.1.5.8
*
*/
virtual void PathSwitchRequest (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t gci, std::list<ErabSwitchedInDownlinkItem> erabToBeSwitchedInDownlinkList) = 0;
};
/**
* \ingroup lte
*
* eNB side of the S1-AP Service Access Point (SAP), provides the eNB
* methods to be called when an S1-AP message is received by the eNB.
*/
class EpcS1apSapEnb : public EpcS1apSap
{
public:
struct ErabToBeSetupItem
{
uint8_t erabId;
EpsBearer erabLevelQosParameters;
Ipv4Address transportLayerAddress;
uint32_t sgwTeid;
};
/**
*
*
* \param mmeUeS1Id in practice, we use the IMSI
* \param enbUeS1Id in practice, we use the RNTI
* \param erabToBeSetupList
*
*/
virtual void InitialContextSetupRequest (uint64_t mmeUeS1Id,
uint16_t enbUeS1Id,
std::list<ErabToBeSetupItem> erabToBeSetupList) = 0;
/**
* E-RABs Switched in Uplink Item IE, see 3GPP TS 36.413 9.1.5.9
*
*/
struct ErabSwitchedInUplinkItem
{
uint8_t erabId;
Ipv4Address transportLayerAddress;
uint32_t enbTeid;
};
/**
* PATH SWITCH REQUEST ACKNOWLEDGE message, see 3GPP TS 36.413 9.1.5.9
*
*/
virtual void PathSwitchRequestAcknowledge (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t cgi, std::list<ErabSwitchedInUplinkItem> erabToBeSwitchedInUplinkList) = 0;
};
/**
* Template for the implementation of the EpcS1apSapMme as a member
* of an owner class of type C to which all methods are forwarded
*
*/
template <class C>
class MemberEpcS1apSapMme : public EpcS1apSapMme
{
public:
MemberEpcS1apSapMme (C* owner);
// inherited from EpcS1apSapMme
virtual void InitialUeMessage (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, uint64_t imsi, uint16_t ecgi);
virtual void ErabReleaseIndication (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabToBeReleasedIndication> erabToBeReleaseIndication );
virtual void InitialContextSetupResponse (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabSetupItem> erabSetupList);
virtual void PathSwitchRequest (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t cgi, std::list<ErabSwitchedInDownlinkItem> erabToBeSwitchedInDownlinkList);
private:
MemberEpcS1apSapMme ();
C* m_owner;
};
template <class C>
MemberEpcS1apSapMme<C>::MemberEpcS1apSapMme (C* owner)
: m_owner (owner)
{
}
template <class C>
MemberEpcS1apSapMme<C>::MemberEpcS1apSapMme ()
{
}
template <class C>
void MemberEpcS1apSapMme<C>::InitialUeMessage (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, uint64_t imsi, uint16_t ecgi)
{
m_owner->DoInitialUeMessage (mmeUeS1Id, enbUeS1Id, imsi, ecgi);
}
template <class C>
void MemberEpcS1apSapMme<C>::ErabReleaseIndication (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabToBeReleasedIndication> erabToBeReleaseIndication)
{
m_owner->DoErabReleaseIndication (mmeUeS1Id, enbUeS1Id, erabToBeReleaseIndication);
}
template <class C>
void MemberEpcS1apSapMme<C>::InitialContextSetupResponse (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabSetupItem> erabSetupList)
{
m_owner->DoInitialContextSetupResponse (mmeUeS1Id, enbUeS1Id, erabSetupList);
}
template <class C>
void MemberEpcS1apSapMme<C>::PathSwitchRequest (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t cgi, std::list<ErabSwitchedInDownlinkItem> erabToBeSwitchedInDownlinkList)
{
m_owner->DoPathSwitchRequest (enbUeS1Id, mmeUeS1Id, cgi, erabToBeSwitchedInDownlinkList);
}
/**
* Template for the implementation of the EpcS1apSapEnb as a member
* of an owner class of type C to which all methods are forwarded
*
*/
template <class C>
class MemberEpcS1apSapEnb : public EpcS1apSapEnb
{
public:
MemberEpcS1apSapEnb (C* owner);
// inherited from EpcS1apSapEnb
virtual void InitialContextSetupRequest (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabToBeSetupItem> erabToBeSetupList);
virtual void PathSwitchRequestAcknowledge (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t cgi, std::list<ErabSwitchedInUplinkItem> erabToBeSwitchedInUplinkList);
private:
MemberEpcS1apSapEnb ();
C* m_owner;
};
template <class C>
MemberEpcS1apSapEnb<C>::MemberEpcS1apSapEnb (C* owner)
: m_owner (owner)
{
}
template <class C>
MemberEpcS1apSapEnb<C>::MemberEpcS1apSapEnb ()
{
}
template <class C>
void MemberEpcS1apSapEnb<C>::InitialContextSetupRequest (uint64_t mmeUeS1Id, uint16_t enbUeS1Id, std::list<ErabToBeSetupItem> erabToBeSetupList)
{
m_owner->DoInitialContextSetupRequest (mmeUeS1Id, enbUeS1Id, erabToBeSetupList);
}
template <class C>
void MemberEpcS1apSapEnb<C>::PathSwitchRequestAcknowledge (uint64_t enbUeS1Id, uint64_t mmeUeS1Id, uint16_t cgi, std::list<ErabSwitchedInUplinkItem> erabToBeSwitchedInUplinkList)
{
m_owner->DoPathSwitchRequestAcknowledge (enbUeS1Id, mmeUeS1Id, cgi, erabToBeSwitchedInUplinkList);
}
} //namespace ns3
#endif /* EPC_S1AP_SAP_H */
|