Commit e90b12f0 authored by Rohan's avatar Rohan
Browse files

clang formatting

parent 2f944389
......@@ -124,7 +124,7 @@ class pfcp_ie : public stream_serializable {
static pfcp_ie* new_pfcp_ie_from_stream(std::istream& is);
//from SPGWC
// from SPGWC
static bool string_to_dotted(const std::string& str, std::string& dotted) {
uint8_t offset = 0;
uint8_t* last_size;
......@@ -624,9 +624,7 @@ class pfcp_enterprise_specific_ie : public pfcp_ie {
}
// --------
explicit pfcp_enterprise_specific_ie(const pfcp_tlv& t)
: pfcp_ie(t),
enterprise_id(0),
proprietary_data(){};
: pfcp_ie(t), enterprise_id(0), proprietary_data(){};
//--------
void to_core_type(pfcp::enterprise_specific_t& b) {
......@@ -636,8 +634,8 @@ class pfcp_enterprise_specific_ie : public pfcp_ie {
//--------
void dump_to(std::ostream& os) {
tlv.dump_to(os);
os.write(reinterpret_cast<const char*>(&enterprise_id),
sizeof(enterprise_id));
os.write(
reinterpret_cast<const char*>(&enterprise_id), sizeof(enterprise_id));
os << enterprise_id;
}
//--------
......@@ -647,8 +645,7 @@ class pfcp_enterprise_specific_ie : public pfcp_ie {
throw pfcp_tlv_bad_length_exception(
tlv.type, tlv.get_length(), __FILE__, __LINE__);
}
is.read(reinterpret_cast<char*>(&enterprise_id),
sizeof(enterprise_id));
is.read(reinterpret_cast<char*>(&enterprise_id), sizeof(enterprise_id));
char e[tlv.get_length() - 2];
is.read(e, tlv.get_length() - 2);
......
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