Unverified Commit 6fd511e6 authored by Rohan's avatar Rohan

IE UPF Features - length fix

parent b341745a
......@@ -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;
......
......@@ -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__);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment