Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Spgwu-Tiny-Simple
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
Operations
Operations
Metrics
Environments
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
CommunityXG
OpenXG-Spgwu-Tiny-Simple
Commits
1bacf6bc
Commit
1bacf6bc
authored
May 14, 2019
by
gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug imsi to imsi64 conversion
parent
496955d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
21 deletions
+34
-21
src/common/3gpp_29.274.h
src/common/3gpp_29.274.h
+34
-21
No files found.
src/common/3gpp_29.274.h
View file @
1bacf6bc
...
...
@@ -425,9 +425,9 @@ struct imsi_s {
{
imsi64_t
imsi64
=
0
;
for
(
int
i
=
0
;
i
<
IMSI_BCD8_SIZE
;
i
++
)
{
uint8_t
d
2
=
u1
.
b
[
i
];
uint8_t
d
1
=
(
d2
&
0xf0
)
>>
4
;
d
2
=
d2
&
0x0f
;
uint8_t
d
1
=
u1
.
b
[
i
];
uint8_t
d
2
=
(
d1
&
0xf0
)
>>
4
;
d
1
=
d1
&
0x0f
;
if
(
10
>
d1
)
{
imsi64
=
imsi64
*
10
+
d1
;
if
(
10
>
d2
)
{
...
...
@@ -1263,6 +1263,19 @@ struct fully_qualified_tunnel_endpoint_identifier_s {
struct
in_addr
ipv4_address
;
struct
in6_addr
ipv6_address
;
bool
operator
<
(
const
struct
fully_qualified_tunnel_endpoint_identifier_s
&
f
)
const
{
return
(
teid_gre_key
<
f
.
teid_gre_key
)
or
(
ipv4_address
.
s_addr
<
f
.
ipv4_address
.
s_addr
)
or
(
interface_type
<
f
.
interface_type
)
or
(
v4
==
f
.
v4
)
or
(
v6
==
f
.
v6
)
or
(
ipv6_address
.
s6_addr32
[
0
]
==
f
.
ipv6_address
.
s6_addr32
[
0
])
or
(
ipv6_address
.
s6_addr32
[
1
]
==
f
.
ipv6_address
.
s6_addr32
[
1
])
or
(
ipv6_address
.
s6_addr32
[
2
]
==
f
.
ipv6_address
.
s6_addr32
[
2
])
or
(
ipv6_address
.
s6_addr32
[
3
]
==
f
.
ipv6_address
.
s6_addr32
[
3
]);
}
bool
operator
==
(
const
struct
fully_qualified_tunnel_endpoint_identifier_s
&
f
)
const
{
return
(
teid_gre_key
==
f
.
teid_gre_key
)
and
...
...
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