NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
LTENR_EPC.h
1#pragma once
2/************************************************************************************
3* Copyright (C) 2023 *
4* TETCOS, Bangalore. India *
5* *
6* Tetcos owns the intellectual property rights in the Product and its content. *
7* The copying, redistribution, reselling or publication of any or all of the *
8* Product or its content without express prior written consent of Tetcos is *
9* prohibited. Ownership and / or any other right relating to the software and all *
10* intellectual property rights therein shall remain at all times with Tetcos. *
11* *
12* This source code is licensed per the NetSim license agreement. *
13* *
14* No portion of this source code may be used as the basis for a derivative work, *
15* or used, for any purpose other than its intended use per the NetSim license *
16* agreement. *
17* *
18* This source code and the algorithms contained within it are confidential trade *
19* secrets of TETCOS and may not be used as the basis for any other software, *
20* hardware, product or service. *
21* *
22* Author: Shashi Kant Suman *
23* *
24* ----------------------------------------------------------------------------------*/
25#ifndef _NETSIM_LTENR_EPC_H_
26#define _NETSIM_LTENR_EPC_H_
27
28#pragma region HEADER_FILES
29#include "List.h"
30#pragma endregion
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#pragma region EPC_HLR
37 typedef struct stru_LTENR_EPC_HLR
38 {
39 NETSIM_ID ueId;
40 NETSIM_ID ueIf;
41 NETSIM_ID gnbId;
42 NETSIM_ID gnbIf;
43 _ptr_ele ele;
44 }LTENR_EPC_HLR, * ptrLTENR_EPC_HLR;
45#define LTENR_EPC_HLR_ALLOC() ((ptrLTENR_EPC_HLR)list_alloc(sizeof(LTENR_EPC_HLR),offsetof(LTENR_EPC_HLR,ele)))
46#define LTENR_EPC_HLR_ADD(epc,h) (LIST_ADD_LAST(&(epc)->hlr,(h)))
47#define LTENR_EPC_HLR_REMOVE(epc,h) (LIST_FREE(&(epc)->hlr,(h)))
48#define LTENR_EPC_HLR_NEXT(h) ((h)=LIST_NEXT((h)))
49#pragma endregion
50
51#pragma region LTENR_EPC_STRUC
52 typedef struct stru_LTENR_EPC
53 {
54 NETSIM_ID d;
55 NETSIM_ID in;
56 ptrLTENR_EPC_HLR hlr;
57 }LTENR_EPC, * ptrLTENR_EPC;
58#pragma endregion
59
60#pragma region FUN_DEF
61 NETSIM_ID LTENR_EPC_HLR_FindOutInterface(NETSIM_ID d, NETSIM_ID dest);
62 ptrLTENR_EPC_HLR LTENR_EPC_FindHLR(NETSIM_ID d, NETSIM_ID in, NETSIM_ID dest);
63 NETSIM_ID LTENR_NSA_EPC_HLR_FindOutInterface_FOR_GNB(NETSIM_ID d, NETSIM_ID dest, NETSIM_ID gnbID);
64 ptrLTENR_EPC_HLR LTENR_EPC_FindHLR_For_GNB(NETSIM_ID d, NETSIM_ID in, NETSIM_ID dest, NETSIM_ID gnbID);
65#pragma endregion
66
67#ifdef __cplusplus
68}
69#endif
70#endif /* _NETSIM_LTENR_EPC_H_ */