Commit 4d60d6c2 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Merge branch 'nwi_decoding' into 'develop'

IE Network Instance encoding fix

See merge request !68
parents 401bf13b 206c878b
......@@ -33,6 +33,7 @@
#include "logger.hpp"
#include "msg_pfcp.hpp"
#include "serializable.hpp"
#include "string.hpp"
#include <arpa/inet.h>
#include <cstring>
......@@ -868,11 +869,14 @@ class pfcp_fteid_ie : public pfcp_ie {
class pfcp_network_instance_ie : public pfcp_ie {
public:
std::string network_instance;
std::string network_instance_dotted;
//--------
explicit pfcp_network_instance_ie(const pfcp::network_instance_t& b)
: pfcp_ie(PFCP_IE_NETWORK_INSTANCE) {
network_instance = b.network_instance;
util::string_to_dotted(network_instance, network_instance_dotted);
network_instance = network_instance_dotted;
tlv.set_length(network_instance.size());
}
//--------
......
......@@ -23,6 +23,7 @@ include_directories(${SRC_TOP_DIR}/common)
include_directories(${SRC_TOP_DIR}/itti)
include_directories(${SRC_TOP_DIR}/common/msg)
include_directories(${SRC_TOP_DIR}/common/utils)
include_directories(${SRC_TOP_DIR}/common/utils/bstr)
include_directories(${SRC_TOP_DIR}/oai_smf)
include_directories(${SRC_TOP_DIR}/pfcp)
include_directories(${SRC_TOP_DIR}/udp)
......
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