Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Replaced old SSI function with new macros jira id - ODUHIGH-212"
[o-du/l2.git]
/
src
/
cu_stub
/
cu_stub.c
diff --git
a/src/cu_stub/cu_stub.c
b/src/cu_stub/cu_stub.c
index
61867df
..
c9a8daa
100644
(file)
--- a/
src/cu_stub/cu_stub.c
+++ b/
src/cu_stub/cu_stub.c
@@
-17,15
+17,16
@@
*******************************************************************************/
/* This functions contains main() for cu_app */
*******************************************************************************/
/* This functions contains main() for cu_app */
-
+#include "common_def.h"
#include "cu_stub.h"
#include "cu_stub_sctp.h"
#include "cu_stub_egtp.h"
#include "cu_stub.h"
#include "cu_stub_sctp.h"
#include "cu_stub_egtp.h"
+#include "du_log.h"
#define CU_ID 1
#define CU_NAME "ORAN_OAM_CU"
#define CU_ID 1
#define CU_NAME "ORAN_OAM_CU"
-#define DU_IP_V4_ADDR "1
0.0.2.20
"
-#define CU_IP_V4_ADDR "1
0.0.2.25
"
+#define DU_IP_V4_ADDR "1
92.168.130.81
"
+#define CU_IP_V4_ADDR "1
92.168.130.82
"
#define DU_IP_V6_ADDR "0000:0000:0000:0000:0000:0000:0000:0001"
#define CU_IP_V6_ADDR "0000:0000:0000:0000:0000:0000:0000:0011"
#define DU_PORT 38472
#define DU_IP_V6_ADDR "0000:0000:0000:0000:0000:0000:0000:0001"
#define CU_IP_V6_ADDR "0000:0000:0000:0000:0000:0000:0000:0011"
#define DU_PORT 38472
@@
-84,7
+85,7
@@
void init_log()
*
* ****************************************************************/
*
* ****************************************************************/
-
S16
tst()
+
uint8_t
tst()
{
init_log();
DU_LOG("\nStarting CU_STUB");
{
init_log();
DU_LOG("\nStarting CU_STUB");
@@
-99,9
+100,10
@@
S16 tst()
sctpActvInit();
/* Start CU-SCTP to listen on incoming connection */
sctpActvInit();
/* Start CU-SCTP to listen on incoming connection */
- sctpStartReq();
+ sctpCfgReq();
+ sctpStartReq();
-
RETVALUE(ROK)
;
+
return ROK
;
}
/*******************************************************************
}
/*******************************************************************
@@
-135,17
+137,13
@@
void readCuCfg()
strcpy(cuCfgParams.cuName, CU_NAME);
/* DU IP Address and Port*/
strcpy(cuCfgParams.cuName, CU_NAME);
/* DU IP Address and Port*/
- cuCfgParams.sctpParams.duIpAddr.ipV4Pres = true;
cuCfgParams.sctpParams.duIpAddr.ipV4Addr = ipv4_du;
cuCfgParams.sctpParams.duIpAddr.ipV6Pres = false;
cuCfgParams.sctpParams.duIpAddr.ipV4Addr = ipv4_du;
cuCfgParams.sctpParams.duIpAddr.ipV6Pres = false;
- //strcpy(cuCfgParams.sctpParams.duIpAddr.ipV6Addr, (char*)DU_IP_V6_ADDR);
cuCfgParams.sctpParams.duPort = DU_PORT;
/* CU IP Address and Port*/
cuCfgParams.sctpParams.duPort = DU_PORT;
/* CU IP Address and Port*/
- cuCfgParams.sctpParams.cuIpAddr.ipV4Pres = true;
cuCfgParams.sctpParams.cuIpAddr.ipV4Addr = ipv4_cu;
cuCfgParams.sctpParams.cuIpAddr.ipV6Pres = false;
cuCfgParams.sctpParams.cuIpAddr.ipV4Addr = ipv4_cu;
cuCfgParams.sctpParams.cuIpAddr.ipV6Pres = false;
- //strcpy(cuCfgParams.sctpParams.cuIpAddr.ipV6Addr, DU_IP_V6_ADDR);
cuCfgParams.sctpParams.cuPort = CU_PORT;
/*PLMN*/
cuCfgParams.sctpParams.cuPort = CU_PORT;
/*PLMN*/