Unverified Commit 206c878b authored by kharade's avatar kharade

IE Network Instance encoding fix

parent 0162e7a8
......@@ -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