Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizhongxiao
OpenXG-RAN
Commits
5af9e41c
Commit
5af9e41c
authored
Feb 22, 2024
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless code
in PDCP, NAS
parent
35936fd5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
52 deletions
+0
-52
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+0
-10
openair2/RRC/NAS/nas_config.c
openair2/RRC/NAS/nas_config.c
+0
-17
openair2/RRC/NAS/nas_config.h
openair2/RRC/NAS/nas_config.h
+0
-13
openair2/SDAP/nr_sdap/nr_sdap.c
openair2/SDAP/nr_sdap/nr_sdap.c
+0
-12
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
5af9e41c
...
@@ -1027,16 +1027,6 @@ bool nr_pdcp_data_req_drb(protocol_ctxt_t *ctxt_pP,
...
@@ -1027,16 +1027,6 @@ bool nr_pdcp_data_req_drb(protocol_ctxt_t *ctxt_pP,
nr_pdcp_entity_t
*
rb
;
nr_pdcp_entity_t
*
rb
;
ue_id_t
ue_id
=
ctxt_pP
->
rntiMaybeUEid
;
ue_id_t
ue_id
=
ctxt_pP
->
rntiMaybeUEid
;
if
(
ctxt_pP
->
module_id
!=
0
||
//ctxt_pP->enb_flag != 1 ||
ctxt_pP
->
instance
!=
0
||
ctxt_pP
->
eNB_index
!=
0
/*||
ctxt_pP->configured != 1 ||
ctxt_pP->brOption != 0*/
)
{
LOG_E
(
PDCP
,
"%s:%d:%s: fatal
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
);
exit
(
1
);
}
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
...
...
openair2/RRC/NAS/nas_config.c
View file @
5af9e41c
...
@@ -410,23 +410,6 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname,
...
@@ -410,23 +410,6 @@ int nas_config(int interface_id, int thirdOctet, int fourthOctet, char *ifname,
return
returnValue
;
return
returnValue
;
}
}
// Blocking full configuration of the interface (address, net mask, and broadcast mask)
int
blocking_NAS_config
(
char
*
interfaceName
,
char
*
ipAddress
,
char
*
networkMask
,
char
*
broadcastAddress
)
{
char
command
[
200
];
command
[
0
]
=
'\0'
;
strcat
(
command
,
"ifconfig "
);
strncat
(
command
,
interfaceName
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
" "
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
ipAddress
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
" networkMask "
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
networkMask
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
" broadcast "
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
strncat
(
command
,
broadcastAddress
,
sizeof
(
command
)
-
strlen
(
command
)
-
1
);
// ifconfig nasmesh0 10.0.1.1 networkMask 255.255.255.0 broadcast 10.0.1.255
int
i
=
system
(
command
);
return
i
;
}
// program help
// program help
void
helpOptions
(
char
**
argv
)
{
void
helpOptions
(
char
**
argv
)
{
printf
(
"Help for %s
\n
"
,
argv
[
0
]);
printf
(
"Help for %s
\n
"
,
argv
[
0
]);
...
...
openair2/RRC/NAS/nas_config.h
View file @
5af9e41c
...
@@ -89,19 +89,6 @@ int nas_config_mbms(int interface_id, int thirdOctet, int fourthOctet, char *ifs
...
@@ -89,19 +89,6 @@ int nas_config_mbms(int interface_id, int thirdOctet, int fourthOctet, char *ifs
*/
*/
int
nas_config_mbms_s1
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
char
*
ifsuffix
);
int
nas_config_mbms_s1
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
char
*
ifsuffix
);
/*! \fn int blocking_NAS_config(char*, char*, char*, char*)
* \brief This function initializes the nasmesh interface, in a blocking way,
* the system calls are interrupted
* \param[in] interfaceName, the name of the interface, e.g. nasmesh0 or nasmesh1
* \param[in] ipAddress, the address of the interface, e.g. 10.0.1.1
* \param[in] networkMask, the network mask to be used, e.g. 255.255.255.0
* \param[in] broadcastAddress, the broadcast address for the subnet, e.g. 10.0.1.255
* \return 0 on success, otherwise 1
* \note
* @ingroup _nas
*/
int
blocking_NAS_config
(
char
*
interfaceName
,
char
*
ipAddress
,
char
*
networkMask
,
char
*
broadcastAddress
);
/*! \fn int setInterfaceParameter(char*, char*, int)
/*! \fn int setInterfaceParameter(char*, char*, int)
* \brief This function sets an genneric interface parameter (SIOCSIFADDR,
* \brief This function sets an genneric interface parameter (SIOCSIFADDR,
* SIOCSIFNETMASK, SIOCSIFBRDADDR, SIOCSIFFLAGS)
* SIOCSIFNETMASK, SIOCSIFBRDADDR, SIOCSIFFLAGS)
...
...
openair2/SDAP/nr_sdap/nr_sdap.c
View file @
5af9e41c
...
@@ -55,13 +55,7 @@ static void *gnb_tun_read_thread(void *arg)
...
@@ -55,13 +55,7 @@ static void *gnb_tun_read_thread(void *arg)
if
(
!
has_ue
)
if
(
!
has_ue
)
continue
;
continue
;
ctxt
.
module_id
=
0
;
ctxt
.
enb_flag
=
1
;
ctxt
.
enb_flag
=
1
;
ctxt
.
instance
=
0
;
ctxt
.
frame
=
0
;
ctxt
.
subframe
=
0
;
ctxt
.
eNB_index
=
0
;
ctxt
.
brOption
=
0
;
ctxt
.
rntiMaybeUEid
=
UEid
;
ctxt
.
rntiMaybeUEid
=
UEid
;
uint8_t
qfi
=
7
;
uint8_t
qfi
=
7
;
...
@@ -134,13 +128,7 @@ static void *ue_tun_read_thread(void *arg)
...
@@ -134,13 +128,7 @@ static void *ue_tun_read_thread(void *arg)
LOG_D
(
PDCP
,
"%s(): pdusession_sock read returns len %d
\n
"
,
__func__
,
len
);
LOG_D
(
PDCP
,
"%s(): pdusession_sock read returns len %d
\n
"
,
__func__
,
len
);
ctxt
.
module_id
=
0
;
ctxt
.
enb_flag
=
0
;
ctxt
.
enb_flag
=
0
;
ctxt
.
instance
=
0
;
ctxt
.
frame
=
0
;
ctxt
.
subframe
=
0
;
ctxt
.
eNB_index
=
0
;
ctxt
.
brOption
=
0
;
ctxt
.
rntiMaybeUEid
=
entity
->
ue_id
;
ctxt
.
rntiMaybeUEid
=
entity
->
ue_id
;
bool
dc
=
SDAP_HDR_UL_DATA_PDU
;
bool
dc
=
SDAP_HDR_UL_DATA_PDU
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment