Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dast
openairinterface5G
Commits
ff6c7119
Commit
ff6c7119
authored
7 years ago
by
knopp
Browse files
Options
Downloads
Patches
Plain Diff
added MAC header handling for reception.
parent
532a566c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair2/LAYER2/MAC/ue_procedures.c
+22
-4
22 additions, 4 deletions
openair2/LAYER2/MAC/ue_procedures.c
with
22 additions
and
4 deletions
openair2/LAYER2/MAC/ue_procedures.c
+
22
−
4
View file @
ff6c7119
...
@@ -751,6 +751,24 @@ void ue_send_sl_sdu(module_id_t module_idP,
...
@@ -751,6 +751,24 @@ void ue_send_sl_sdu(module_id_t module_idP,
uint8_t
eNB_index
uint8_t
eNB_index
)
{
)
{
int
rlc_sdu_len
;
char
*
rlc_sdu
;
// Notes: 1. no control elements are supported yet
// 2. we exit with error if LCID != 3
// 3. we exit with error if E=1 (more than one SDU/CE)
// extract header
SLSCH_SUBHEADER_24_Bit_DST_LONG
*
longh
=
(
SLSCH_SUBHEADER_24_Bit_DST_LONG
*
)
sdu
;
AssertFatal
(
longh
->
E
==
0
,
"E is non-zero
\n
"
);
AssertFatal
(
longh
->
LCID
==
3
,
"LCID is %d (not 3)
\n
"
,
longh
->
LCID
);
if
(
longh
->
F
==
1
)
{
rlc_sdu_len
=
((
longh
->
L_MSB
<<
8
)
&
0x7F00
)
|
(
longh
->
L_LSB
&
0xFF
);
rlc_sdu
=
sdu
+
sizeof
(
SLSCH_SUBHEADER_24_Bit_DST_LONG
);
}
else
{
rlc_sdu_len
=
((
SLSCH_SUBHEADER_24_Bit_DST_SHORT
*
)
sdu
)
->
L
;
rlc_sdu
=
sdu
+
sizeof
(
SLSCH_SUBHEADER_24_Bit_DST_SHORT
);
}
mac_rlc_data_ind
(
mac_rlc_data_ind
(
module_idP
,
module_idP
,
0x1234
,
0x1234
,
...
@@ -759,8 +777,8 @@ void ue_send_sl_sdu(module_id_t module_idP,
...
@@ -759,8 +777,8 @@ void ue_send_sl_sdu(module_id_t module_idP,
ENB_FLAG_NO
,
ENB_FLAG_NO
,
MBMS_FLAG_NO
,
MBMS_FLAG_NO
,
3
,
3
,
(
char
*
)
sdu
,
rlc_
sdu
,
sdu_len
,
rlc_
sdu_len
,
1
,
1
,
NULL
);
NULL
);
}
}
...
@@ -2762,7 +2780,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
...
@@ -2762,7 +2780,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
SLSCH_SUBHEADER_24_Bit_DST_SHORT
*
shorth
=
(
SLSCH_SUBHEADER_24_Bit_DST_SHORT
*
)
slsch
->
payload
;
SLSCH_SUBHEADER_24_Bit_DST_SHORT
*
shorth
=
(
SLSCH_SUBHEADER_24_Bit_DST_SHORT
*
)
slsch
->
payload
;
shorth
->
F
=
0
;
shorth
->
F
=
0
;
shorth
->
L
=
sdu_length
;
shorth
->
L
=
sdu_length
;
shorth
->
E
=
1
;
shorth
->
E
=
0
;
shorth
->
LCID
=
3
;
shorth
->
LCID
=
3
;
shorth
->
SRC07
=
0x12
;
shorth
->
SRC07
=
0x12
;
shorth
->
SRC815
=
0x34
;
shorth
->
SRC815
=
0x34
;
...
@@ -2777,7 +2795,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
...
@@ -2777,7 +2795,7 @@ SLSCH_t *ue_get_slsch(module_id_t module_idP,int CC_id,frame_t frameP,sub_frame_
longh
->
F
=
1
;
longh
->
F
=
1
;
longh
->
L_LSB
=
sdu_length
&
0xff
;
longh
->
L_LSB
=
sdu_length
&
0xff
;
longh
->
L_MSB
=
(
sdu_length
>>
8
)
&
0x7f
;
longh
->
L_MSB
=
(
sdu_length
>>
8
)
&
0x7f
;
longh
->
E
=
1
;
longh
->
E
=
0
;
longh
->
LCID
=
3
;
longh
->
LCID
=
3
;
longh
->
SRC07
=
0x12
;
longh
->
SRC07
=
0x12
;
longh
->
SRC815
=
0x34
;
longh
->
SRC815
=
0x34
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment