Commit 0a6d081e authored by ferrerod's avatar ferrerod

Merge branch 'develop' of gitlab.eurecom.fr:oai/cn5g/oai-cn5g-smf into qos_monitoring_event

parents fd3a453b 5ffe1504
......@@ -33,8 +33,10 @@ bool mime_parser::parse(const std::string& str) {
// find boundary
std::size_t content_type_pos = str.find("Content-Type"); // first part
// For normal message -> don't need to parse (number of parts = 0)
if ((content_type_pos <= 4) or (content_type_pos == std::string::npos))
return false;
return true;
std::string boundary_str =
str.substr(2, content_type_pos - 4); // 2 for -- and 2 for CRLF
......
......@@ -9271,6 +9271,11 @@ class pfcp_create_urr_ie : public pfcp_grouped_ie {
add_ie(sie);
}
}
if (b.urr_id.first && b.volume_threshold.first) {
std::shared_ptr<pfcp_volume_threshold_ie> sie(
new pfcp_volume_threshold_ie(b.volume_threshold.second));
add_ie(sie);
}
// ToDo: Optional IEs
}
pfcp_create_urr_ie() : pfcp_grouped_ie(PFCP_IE_CREATE_URR) {}
......
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