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
6fd511e6
Unverified
Commit
6fd511e6
authored
Mar 17, 2021
by
Rohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IE UPF Features - length fix
parent
b341745a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
100 deletions
+100
-100
src/common/3gpp_29.244.h
src/common/3gpp_29.244.h
+45
-45
src/pfcp/3gpp_29.244.hpp
src/pfcp/3gpp_29.244.hpp
+55
-55
No files found.
src/common/3gpp_29.244.h
View file @
6fd511e6
...
...
@@ -703,7 +703,7 @@ struct up_function_features_s {
uint16_t
quoac
:
1
;
uint16_t
trace
:
1
;
uint16_t
frrt
:
1
;
// uint16_t spare : 2;
// uint16_t spare : 2;
uint16_t
pfde
:
1
;
uint16_t
epfar
:
1
;
...
...
@@ -832,7 +832,7 @@ struct up_function_features_s {
atsss_ll
=
i
.
atsss_ll
;
qfqm
=
i
.
qfqm
;
gpqm
=
i
.
gpqm
;
mt_edt
=
i
.
mt_edt
;
mt_edt
=
i
.
mt_edt
;
ciot
=
i
.
ciot
;
ethar
=
i
.
ethar
;
ddds
=
i
.
ddds
;
...
...
src/pfcp/3gpp_29.244.hpp
View file @
6fd511e6
...
...
@@ -2220,7 +2220,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
uint8_t
quoac
:
1
;
uint8_t
trace
:
1
;
uint8_t
frrt
:
1
;
// uint8_t spare : 2;
// uint8_t spare : 2;
uint8_t
pfde
:
1
;
uint8_t
epfar
:
1
;
}
bf
;
...
...
@@ -2323,7 +2323,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
u5
.
bf
.
atsss_ll
=
b
.
atsss_ll
;
u5
.
bf
.
qfqm
=
b
.
qfqm
;
u5
.
bf
.
gpqm
=
b
.
gpqm
;
u5
.
bf
.
mt_edt
=
b
.
mt_edt
;
u5
.
bf
.
mt_edt
=
b
.
mt_edt
;
u5
.
bf
.
ciot
=
b
.
ciot
;
u5
.
bf
.
ethar
=
b
.
ethar
;
u5
.
bf
.
ddds
=
b
.
ddds
;
...
...
@@ -2331,7 +2331,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
u6
.
bf
.
rttwp
=
b
.
rttwp
;
// tlv.set_length(2);
// tlv.set_length(2);
tlv
.
set_length
(
6
);
}
//--------
...
...
@@ -2372,7 +2372,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
b
.
quoac
=
u2
.
bf
.
quoac
;
b
.
trace
=
u2
.
bf
.
trace
;
b
.
frrt
=
u2
.
bf
.
frrt
;
// b.spare = 0;
// b.spare = 0;
b
.
pfde
=
u2
.
bf
.
pfde
;
b
.
epfar
=
u2
.
bf
.
epfar
;
...
...
@@ -2397,7 +2397,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
b
.
atsss_ll
=
u5
.
bf
.
atsss_ll
;
b
.
qfqm
=
u5
.
bf
.
qfqm
;
b
.
gpqm
=
u5
.
bf
.
gpqm
;
b
.
mt_edt
=
u5
.
bf
.
mt_edt
;
b
.
mt_edt
=
u5
.
bf
.
mt_edt
;
b
.
ciot
=
u5
.
bf
.
ciot
;
b
.
ethar
=
u5
.
bf
.
ethar
;
b
.
ddds
=
u5
.
bf
.
ddds
;
...
...
@@ -2409,7 +2409,7 @@ class pfcp_up_function_features_ie : public pfcp_ie {
}
//--------
void
dump_to
(
std
::
ostream
&
os
)
{
// tlv.set_length(2);
// tlv.set_length(2);
tlv
.
set_length
(
6
);
tlv
.
dump_to
(
os
);
...
...
@@ -2423,8 +2423,8 @@ class pfcp_up_function_features_ie : public pfcp_ie {
//--------
void
load_from
(
std
::
istream
&
is
)
{
// tlv.load_from(is);
// if (tlv.get_length() != 2) {
if
(
tlv
.
get_length
()
!=
6
)
{
// if (tlv.get_length() != 2) {
if
(
tlv
.
get_length
()
>
6
)
{
throw
pfcp_tlv_bad_length_exception
(
tlv
.
type
,
tlv
.
get_length
(),
__FILE__
,
__LINE__
);
}
...
...
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