Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
69f90fb1
Commit
69f90fb1
authored
Oct 16, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup PFCP
parent
163f00e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
src/pfcp/msg_pfcp.hpp
src/pfcp/msg_pfcp.hpp
+0
-9
src/pfcp/pfcp.cpp
src/pfcp/pfcp.cpp
+0
-10
No files found.
src/pfcp/msg_pfcp.hpp
View file @
69f90fb1
...
@@ -534,15 +534,6 @@ namespace pfcp {
...
@@ -534,15 +534,6 @@ namespace pfcp {
// PFCP_IE_ADDITIONAL_MONITORING_TIME
// PFCP_IE_ADDITIONAL_MONITORING_TIME
virtual
bool
get
(
pfcp
::
additional_monitoring_time
&
v
)
const
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_ADDITIONAL_MONITORING_TIME
,
__FILE__
,
__LINE__
);}
virtual
bool
get
(
pfcp
::
additional_monitoring_time
&
v
)
const
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_ADDITIONAL_MONITORING_TIME
,
__FILE__
,
__LINE__
);}
virtual
void
set
(
const
pfcp
::
additional_monitoring_time
&
v
)
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_ADDITIONAL_MONITORING_TIME
,
__FILE__
,
__LINE__
);}
virtual
void
set
(
const
pfcp
::
additional_monitoring_time
&
v
)
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_ADDITIONAL_MONITORING_TIME
,
__FILE__
,
__LINE__
);}
// PFCP_IE_EVENT_INFORMATION
//virtual bool get(pfcp::event_information& v) const {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_INFORMATION, __FILE__, __LINE__);}
//virtual void set(const pfcp::event_information& v) {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_INFORMATION, __FILE__, __LINE__);}
// PFCP_IE_EVENT_REPORTING
//virtual bool get(pfcp::event_reporting& v) const {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_REPORTING, __FILE__, __LINE__);}
//virtual void set(const pfcp::event_reporting& v) {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_REPORTING, __FILE__, __LINE__);}
// PFCP_IE_EVENT_ID
//virtual bool get(pfcp::event_id_t& v) const {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_ID, __FILE__, __LINE__);}
//virtual void set(const pfcp::event_id_t& v) {throw pfcp_msg_illegal_ie_exception(0, PFCP_IE_EVENT_ID, __FILE__, __LINE__);}
// PFCP_IE_EVENT_THRESHOLD
// PFCP_IE_EVENT_THRESHOLD
virtual
bool
get
(
pfcp
::
event_threshold_t
&
v
)
const
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_EVENT_THRESHOLD
,
__FILE__
,
__LINE__
);}
virtual
bool
get
(
pfcp
::
event_threshold_t
&
v
)
const
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_EVENT_THRESHOLD
,
__FILE__
,
__LINE__
);}
virtual
void
set
(
const
pfcp
::
event_threshold_t
&
v
)
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_EVENT_THRESHOLD
,
__FILE__
,
__LINE__
);}
virtual
void
set
(
const
pfcp
::
event_threshold_t
&
v
)
{
throw
pfcp_msg_illegal_ie_exception
(
0
,
PFCP_IE_EVENT_THRESHOLD
,
__FILE__
,
__LINE__
);}
...
...
src/pfcp/pfcp.cpp
View file @
69f90fb1
...
@@ -230,7 +230,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_heartbeat_
...
@@ -230,7 +230,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_heartbeat_
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -256,8 +255,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_associatio
...
@@ -256,8 +255,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_associatio
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -283,8 +280,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_associatio
...
@@ -283,8 +280,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const pfcp_associatio
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
////------------------------------------------------------------------------------
////------------------------------------------------------------------------------
...
@@ -362,7 +357,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
...
@@ -362,7 +357,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -389,7 +383,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
...
@@ -389,7 +383,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -416,7 +409,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
...
@@ -416,7 +409,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
////------------------------------------------------------------------------------
////------------------------------------------------------------------------------
...
@@ -469,7 +461,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
...
@@ -469,7 +461,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
@@ -496,7 +487,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
...
@@ -496,7 +487,6 @@ uint32_t pfcp_l4_stack::send_request(const endpoint& dest, const uint64_t seid,
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
trxn_id2seq_num
.
insert
(
std
::
pair
<
uint64_t
,
uint32_t
>
(
proc
.
trxn_id
,
msg
.
get_sequence_number
()));
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
udp_s_allocated
.
async_send_to
(
reinterpret_cast
<
const
char
*>
(
bstream
.
c_str
()),
bstream
.
length
(),
dest
);
//udp_s_8805.async_send_to(reinterpret_cast<const char*>(bstream.c_str()), bstream.length(), dest);
return
msg
.
get_sequence_number
();
return
msg
.
get_sequence_number
();
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment