X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fcu_app%2Fcu_common.h;fp=src%2Fcu_app%2Fcu_common.h;h=b2eeb91520aeb152f3fd2d73ab4af4306e1737eb;hb=829bbd114f1c3dc00c1da47bca0a8207c049df3f;hp=0000000000000000000000000000000000000000;hpb=9ffd4692faec97b8457ef0428549b7bfa7a6bb82;p=o-du%2Fl2.git diff --git a/src/cu_app/cu_common.h b/src/cu_app/cu_common.h new file mode 100644 index 000000000..b2eeb9152 --- /dev/null +++ b/src/cu_app/cu_common.h @@ -0,0 +1,58 @@ +/******************************************************************************* +################################################################################ +# Copyright (c) [2017-2019] [Radisys] # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ +*******************************************************************************/ + +/* This file contains common defines for CU Config Params */ + +#ifndef __CU_COMMON_H__ +#define __CU_COMMON_H__ + +#include "envdep.h" + +#define MAX_IPV4_LEN 16 +#define MAX_IPV6_LEN 40 +#define CU_DU_NAME_LEN_MAX 150 /* Max length of CU/DU name string */ + +typedef struct ipAddr +{ + Bool ipV4Pres; + char ipV4Addr[MAX_IPV4_LEN]; + Bool ipV6Pres; + char ipV6Addr[MAX_IPV6_LEN]; +}SctpIpAddr; + +typedef struct sctpParams +{ + SctpIpAddr duIpAddr; + U16 duPort; + SctpIpAddr cuIpAddr; + U16 cuPort; +}SctpParams; + +typedef struct cuCfgParams +{ + U32 cuId; + char cuName[CU_DU_NAME_LEN_MAX]; + SctpParams sctpParams; +}CuCfgParams; + +extern CuCfgParams cuCfgParams; + +#endif +/********************************************************************** + End of file +**********************************************************************/