Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
OpenXG
OpenXG-SMF
Commits
e90b12f0
Commit
e90b12f0
authored
May 21, 2021
by
kharade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang formatting
parent
2f944389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
src/pfcp/3gpp_29.244.hpp
src/pfcp/3gpp_29.244.hpp
+11
-14
No files found.
src/pfcp/3gpp_29.244.hpp
View file @
e90b12f0
...
...
@@ -124,7 +124,7 @@ class pfcp_ie : public stream_serializable {
static
pfcp_ie
*
new_pfcp_ie_from_stream
(
std
::
istream
&
is
);
//from SPGWC
//
from SPGWC
static
bool
string_to_dotted
(
const
std
::
string
&
str
,
std
::
string
&
dotted
)
{
uint8_t
offset
=
0
;
uint8_t
*
last_size
;
...
...
@@ -609,35 +609,33 @@ class pfcp_enterprise_specific_ie : public pfcp_ie {
uint16_t
enterprise_id
;
std
::
string
proprietary_data
;
//--------
//--------
explicit
pfcp_enterprise_specific_ie
(
const
pfcp
::
enterprise_specific_t
&
b
)
:
pfcp_ie
(
PFCP_IE_ENTERPRISE_SPECIFIC
)
{
enterprise_id
=
b
.
enterprise_id
;
enterprise_id
=
b
.
enterprise_id
;
proprietary_data
=
b
.
proprietary_data
;
tlv
.
set_length
(
2
+
proprietary_data
.
size
());
}
//--------
pfcp_enterprise_specific_ie
()
:
pfcp_ie
(
PFCP_IE_ENTERPRISE_SPECIFIC
)
{
enterprise_id
=
0
;
enterprise_id
=
0
;
proprietary_data
=
{};
tlv
.
set_length
(
2
);
}
// --------
explicit
pfcp_enterprise_specific_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
),
enterprise_id
(
0
),
proprietary_data
(){};
explicit
pfcp_enterprise_specific_ie
(
const
pfcp_tlv
&
t
)
:
pfcp_ie
(
t
),
enterprise_id
(
0
),
proprietary_data
(){};
//--------
void
to_core_type
(
pfcp
::
enterprise_specific_t
&
b
)
{
b
.
enterprise_id
=
enterprise_id
;
b
.
enterprise_id
=
enterprise_id
;
b
.
proprietary_data
=
proprietary_data
;
}
//--------
void
dump_to
(
std
::
ostream
&
os
)
{
tlv
.
dump_to
(
os
);
os
.
write
(
reinterpret_cast
<
const
char
*>
(
&
enterprise_id
),
sizeof
(
enterprise_id
));
os
.
write
(
reinterpret_cast
<
const
char
*>
(
&
enterprise_id
),
sizeof
(
enterprise_id
));
os
<<
enterprise_id
;
}
//--------
...
...
@@ -647,9 +645,8 @@ class pfcp_enterprise_specific_ie : public pfcp_ie {
throw
pfcp_tlv_bad_length_exception
(
tlv
.
type
,
tlv
.
get_length
(),
__FILE__
,
__LINE__
);
}
is
.
read
(
reinterpret_cast
<
char
*>
(
&
enterprise_id
),
sizeof
(
enterprise_id
));
is
.
read
(
reinterpret_cast
<
char
*>
(
&
enterprise_id
),
sizeof
(
enterprise_id
));
char
e
[
tlv
.
get_length
()
-
2
];
is
.
read
(
e
,
tlv
.
get_length
()
-
2
);
proprietary_data
.
assign
(
e
,
tlv
.
get_length
()
-
2
);
...
...
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