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
Michael Black
OpenXG-RAN
Commits
a9ef6033
Commit
a9ef6033
authored
Jun 07, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove RRC handling code from SDAP
parent
fe63f1b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
openair2/SDAP/nr_sdap/nr_sdap_entity.c
openair2/SDAP/nr_sdap/nr_sdap_entity.c
+0
-47
No files found.
openair2/SDAP/nr_sdap/nr_sdap_entity.c
View file @
a9ef6033
...
...
@@ -25,9 +25,6 @@
#include <openair3/ocp-gtpu/gtp_itf.h>
#include "openair2/LAYER2/nr_pdcp/nr_pdcp_ue_manager.h"
#include "openair2/RRC/NR/rrc_gNB_UE_context.h"
#include "openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h"
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>
...
...
@@ -66,49 +63,6 @@ void nr_pdcp_submit_sdap_ctrl_pdu(ue_id_t ue_id, rb_id_t sdap_ctrl_pdu_drb, nr_s
return
;
}
static
int
get_single_ue_rnti
(
void
)
{
NR_UE_info_t
*
ue
=
NULL
;
UE_iterator
(
RC
.
nrmac
[
0
]
->
UE_info
.
list
,
it
)
{
if
(
it
&&
ue
)
return
-
1
;
if
(
it
)
ue
=
it
;
}
if
(
!
ue
)
return
-
1
;
// verify it exists in RRC as well
rrc_gNB_ue_context_t
*
rrcue
=
rrc_gNB_get_ue_context_by_rnti
(
RC
.
nrrrc
[
0
],
ue
->
rnti
);
if
(
!
rrcue
)
return
-
1
;
return
ue
->
rnti
;
}
static
pthread_once_t
once_bearer
=
PTHREAD_ONCE_INIT
;
// Forward declaration. Forget my sins.
void
rrc_gNB_trigger_new_bearer
(
int
rnti
);
static
uint64_t
cnt
=
0
;
static
void
create_bearer
(
void
)
{
int
const
rnti
=
get_single_ue_rnti
();
assert
(
rnti
>
0
&&
"Error finding the rnti"
);
// verify it exists in RRC as well
rrc_gNB_ue_context_t
*
rrcue
=
rrc_gNB_get_ue_context_by_rnti
(
RC
.
nrrrc
[
0
],
rnti
);
if
(
!
rrcue
)
printf
(
"Could not find the UE in RRC
\n
"
);
// assert(!rrcue && "Could not find UE");
rrc_gNB_trigger_new_bearer
(
rnti
);
}
static
bool
nr_sdap_tx_entity
(
nr_sdap_entity_t
*
entity
,
protocol_ctxt_t
*
ctxt_p
,
const
srb_flag_t
srb_flag
,
...
...
@@ -156,7 +110,6 @@ static bool nr_sdap_tx_entity(nr_sdap_entity_t *entity,
printf
(
"UDP packet detected
\n
"
);
}
else
if
(
hdr
->
protocol
==
IPPROTO_ICMP
){
printf
(
"Ping packet detected
\n
"
);
pthread_once
(
&
once_bearer
,
create_bearer
);
sdap_drb_id
+=
1
;
//cnt%2;
//cnt++;
}
...
...
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