Skip to content

Commit

Permalink
Fix PFCP TP End time name
Browse files Browse the repository at this point in the history
Also populate Reencode PFCP test .txt files with missing
TP IEs.
  • Loading branch information
Sergey Matov committed Jun 2, 2021
1 parent 5cbd250 commit 356c734
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upf/pfcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6869,7 +6869,7 @@ static struct pfcp_ie_def vendor_tp_specs[] =
SIMPLE_IE_FREE(PFCP_IE_TP_BUILD_ID, tp_build_id, "TP: Build Identifier"),
SIMPLE_IE(PFCP_IE_TP_NOW, tp_now, "TP: Now"),
SIMPLE_IE(PFCP_IE_TP_START_TIME, tp_start_time, "TP: Start Time"),
SIMPLE_IE(PFCP_IE_TP_END_TIME, tp_end_time, "TP: Start Time"),
SIMPLE_IE(PFCP_IE_TP_END_TIME, tp_end_time, "TP: End Time"),
[PFCP_IE_TP_ERROR_REPORT] =
{
.name = "TP: Error Report",
Expand Down Expand Up @@ -7893,6 +7893,7 @@ decode_group (u8 * p, int len, const struct pfcp_ie_def *grp_def,
vec_add1 (grp->ies, ie);
goto next;
}

}
else
{
Expand Down
3 changes: 3 additions & 0 deletions upf/test/session_modification_response.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ Usage Report SMR
End Time: 2019/11/07 11:31:06:000
Volume Measurement: V:[T:0,U:0,D:0],P:[T:0,U:0,D:0]
Duration Measurement: 0
TP: Now: 2019/11/07 11:31:06:021
TP: Start Time: 2019/11/07 11:31:06:010
TP: End Time: 2019/11/07 11:31:06:010

3 changes: 3 additions & 0 deletions upf/test/session_report_request.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ Usage Report SRR
End Time: 2019/12/30 09:53:21:000
Volume Measurement: V:[T:0,U:0,D:0],P:[T:0,U:0,D:0]
Duration Measurement: 10
TP: Now: 2019/12/30 09:53:21:218
TP: Start Time: 2019/12/30 09:53:11:218
TP: End Time: 2019/12/30 09:53:21:218

0 comments on commit 356c734

Please sign in to comment.