|
22 | 22 |
|
23 | 23 | #include <stdint.h> |
24 | 24 | #include <netinet/in.h> |
| 25 | +#include <stdbool.h> |
25 | 26 | #include <endian.h> |
26 | 27 |
|
27 | 28 | #include "pfcp_metrics.h" |
@@ -283,7 +284,6 @@ enum pfcp_ie_type { |
283 | 284 | PFCP_IE_USER_PLANE_PATH_FAILURE_REPORT = 102, |
284 | 285 | PFCP_IE_UPDATE_DUPLICATING_PARAMETERS = 105, |
285 | 286 | PFCP_IE_AGGREGATED_URRS = 118, |
286 | | - PFCP_IE_ADDITIONAL_USAGE_REPORT_INFORMATION = 126, |
287 | 287 | PFCP_IE_CREATE_TRAFFIC_ENDPOINT = 127, |
288 | 288 | PFCP_IE_CREATED_TRAFFIC_ENDPOINT = 128, |
289 | 289 | PFCP_IE_UPDATE_TRAFFIC_ENDPOINT = 129, |
@@ -596,6 +596,7 @@ struct pfcp_ie_redirect_information { |
596 | 596 | } __attribute__((packed)); |
597 | 597 |
|
598 | 598 | /* Report Type IE */ |
| 599 | +#define PFCP_IE_REPORT_TYPE_USAR 0x02 |
599 | 600 | struct pfcp_ie_report_type { |
600 | 601 | struct pfcp_ie h; |
601 | 602 | union { |
@@ -3479,7 +3480,14 @@ int pfcp_ie_put_created_te(struct pkt_buffer *pbuff, const uint8_t id, |
3479 | 3480 | const uint32_t teid, |
3480 | 3481 | const struct in_addr *t_ipv4, const struct in6_addr *t_ipv6, |
3481 | 3482 | const struct in_addr *ue_ipv4, const struct in6_addr *ue_ipv6); |
3482 | | -int pfcp_ie_put_usage_report(struct pkt_buffer *pbuff, uint32_t id, |
3483 | | - uint32_t start_time, uint32_t end_time, |
3484 | | - struct pfcp_metrics_pkt *uplink, |
3485 | | - struct pfcp_metrics_pkt *downlink); |
| 3483 | +int pfcp_ie_put_usage_report_deletion(struct pkt_buffer *pbuff, uint32_t id, |
| 3484 | + uint32_t start_time, uint32_t end_time, uint32_t seqn, |
| 3485 | + struct pfcp_metrics_pkt *uplink, |
| 3486 | + struct pfcp_metrics_pkt *downlink); |
| 3487 | +int pfcp_ie_put_usage_report_request(struct pkt_buffer *pbuff, uint32_t query_urr_ref, |
| 3488 | + uint32_t id, uint32_t start_time, uint32_t end_time, |
| 3489 | + uint32_t seqn, struct pfcp_metrics_pkt *uplink, |
| 3490 | + struct pfcp_metrics_pkt *downlink); |
| 3491 | +int pfcp_ie_put_report_type(struct pkt_buffer *pbuff, uint8_t type); |
| 3492 | +int pfcp_ie_put_additional_usage_reports_info(struct pkt_buffer *pbuff, bool auri, |
| 3493 | + uint16_t nr_reports); |
0 commit comments