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
7ad7985d
Commit
7ad7985d
authored
Oct 12, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix to get L2 ID from MAC addr in case of multicast
parent
415fcc68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openair2/NETWORK_DRIVER/UE_IP/common.c
openair2/NETWORK_DRIVER/UE_IP/common.c
+3
-3
No files found.
openair2/NETWORK_DRIVER/UE_IP/common.c
View file @
7ad7985d
...
...
@@ -312,9 +312,9 @@ ue_ip_common_ip2wireless(
printk
(
"[UE_IP_DRV] source MAC %x.%x.%x.%x.%x.%x
\n
"
,
mh
->
h_source
[
0
],
mh
->
h_source
[
1
],
mh
->
h_source
[
2
],
mh
->
h_source
[
3
],
mh
->
h_source
[
4
],
mh
->
h_source
[
5
]);
printk
(
"[UE_IP_DRV] dest MAC %x.%x.%x.%x.%x.%x
\n
"
,
mh
->
h_dest
[
0
],
mh
->
h_dest
[
1
],
mh
->
h_dest
[
2
],
mh
->
h_dest
[
3
],
mh
->
h_dest
[
4
],
mh
->
h_dest
[
5
]);
#endif
//assign source/destL2Id from the
4 lower byte
s of MAC addresses
pdcph
.
sourceL2Id
=
((
uint8_t
)
mh
->
h_source
[
5
]
&
0x000000FF
)
|
(((
uint8_t
)
mh
->
h_source
[
4
]
<<
8
)
&
0x0000FF00
)
|
(((
uint8_t
)
mh
->
h_source
[
3
]
<<
16
)
&
0x00FF0000
)
|
(((
uint8_t
)
mh
->
h_source
[
2
]
<<
24
)
&
0xFF000000
)
;
pdcph
.
destinationL2Id
=
((
uint8_t
)
mh
->
h_dest
[
5
]
&
0x000000FF
)
|
(((
uint8_t
)
mh
->
h_dest
[
4
]
<<
8
)
&
0x0000FF00
)
|
(((
uint8_t
)
mh
->
h_dest
[
3
]
<<
16
)
&
0x00FF0000
)
|
(((
uint8_t
)
mh
->
h_dest
[
2
]
<<
24
)
&
0xFF000000
)
;
//assign source/destL2Id from the
last 24 bit
s of MAC addresses
pdcph
.
sourceL2Id
=
((
uint8_t
)
mh
->
h_source
[
5
]
&
0x000000FF
)
|
(((
uint8_t
)
mh
->
h_source
[
4
]
<<
8
)
&
0x0000FF00
)
|
(((
uint8_t
)
mh
->
h_source
[
3
]
<<
16
)
&
0x00FF0000
)
;
pdcph
.
destinationL2Id
=
((
uint8_t
)
mh
->
h_dest
[
5
]
&
0x000000FF
)
|
(((
uint8_t
)
mh
->
h_dest
[
4
]
<<
8
)
&
0x0000FF00
)
|
(((
uint8_t
)
mh
->
h_dest
[
3
]
<<
16
)
&
0x00FF0000
);
//get Ipv4 address and pass to PCDP header
...
...
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