-
Notifications
You must be signed in to change notification settings - Fork 5
/
e1ap_bearer_modify.h
executable file
·130 lines (99 loc) · 3.6 KB
/
e1ap_bearer_modify.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#ifndef __E1AP_BEARER_MODIFY_H__
#define __E1AP_BEARER_MODIFY_H__ 1
#include "cuup.h"
#include "e1ap_comm.h"
typedef pdus_setup_fail_rsp_info_t pdus_modify_fail_rsp_info_t;
// BEARER CONTEXT MODIFICATION REQUEST sec 9.2.2.4 of 3GPP TS 38.463
// PDU Session Resource to Modify List 9.3.3.11
// DRB To Modify List
typedef struct
{
uint8_t drb_id;
} drb_modify_req_info_t;
// BEARER CONTEXT MODIFICATION REQUEST sec 9.2.2.4 of 3GPP TS 38.463
// PDU Session Resource to Modify List 9.3.3.11
// DRB To Remove List
typedef struct
{
uint8_t drb_id;
} drb_remove_req_info_t;
// BEARER CONTEXT MODIFICATION REQUEST sec 9.2.2.4 of 3GPP TS 38.463
// PDU Session Resource to Modify List 9.3.3.11
typedef struct
{
uint8_t pdus_id;
uint8_t drb_setup_count;
uint8_t drb_modify_count;
uint8_t drb_remove_count;
drb_setup_req_info_t drb_setup_list[MAX_DRB_PER_PDUS];
drb_modify_req_info_t drb_modify_list[MAX_DRB_PER_PDUS];
drb_remove_req_info_t drb_remove_list[MAX_DRB_PER_PDUS];
} pdus_modify_req_info_t;
// BEARER CONTEXT MODIFICATION REQUEST sec 9.2.2.4 of 3GPP TS 38.463
// PDU Session Resource to Remove List 9.3.3.12
typedef struct
{
uint8_t pdus_id;
e1ap_fail_cause_t cause;
} pdus_remove_req_info_t;
// BEARER CONTEXT MODIFICATION RESPONSE. sec 9.2.2.5
// PDU Session Resource Modify List 9.3.3.19
typedef struct
{
uint8_t pdus_id; // PDU Session ID 9.3.1.21
uint8_t drb_setup_succ_count;
uint8_t drb_setup_fail_count;
uint8_t drb_modify_succ_count;
uint8_t drb_modify_fail_count;
// NG DL UP Transport Layer Info 9.3.2.1
// IP Address and TEID of CUUP to which UPF can send DL packets
pfm_ip_addr_t pdus_dl_ip_addr;
uint32_t pdus_dl_teid;
// DRB Setup List
drb_setup_succ_rsp_info_t drb_setup_succ_list[MAX_DRB_PER_PDUS];
// DRB Failed List
drb_setup_fail_rsp_info_t drb_setup_fail_list[MAX_DRB_PER_PDUS];
// DRB Modification List
drb_setup_succ_rsp_info_t drb_modify_succ_list[MAX_DRB_PER_PDUS];
// DRB Failed To Modify List
drb_setup_fail_rsp_info_t drb_modify_fail_list[MAX_DRB_PER_PDUS];
} pdus_modify_succ_rsp_info_t;
// BEARER CONTEXT MODIFICATION REQUEST sec 9.2.2.4 of 3GPP TS 38.463
typedef struct
{
uint32_t cucp_ue_id;
uint32_t cuup_ue_id;
uint8_t pdus_setup_count;
uint8_t pdus_modify_count;
uint8_t pdus_remove_count;
// PDU Session Resource to Setup List 9.3.3.10
pdus_setup_req_info_t pdus_setup_list[MAX_PDUS_PER_UE];
// PDU Session Resource to Modify List 9.3.3.11
pdus_modify_req_info_t pdus_modify_list[MAX_PDUS_PER_UE];
// PDU Session Resource to Remove List 9.3.3.12
pdus_remove_req_info_t pdus_remove_list[MAX_PDUS_PER_UE];
} e1ap_bearer_ctx_modify_req_t;
// BEARER CONTEXT MODIFICATION RESPONSE. sec 9.2.2.5 of 3GPP TS 38.463
// BEARER CONTEXT MODIFICATION FAILURE sec 9.2.2.6 of 3GPP TS 38.463
typedef struct
{
uint32_t cucp_ue_id;
uint32_t cuup_ue_id;
e1ap_fail_cause_t cause; // set to 0 is success
uint8_t pdus_setup_succ_count;
uint8_t pdus_setup_fail_count;
uint8_t pdus_modify_succ_count;
uint8_t pdus_modify_fail_count;
// PDU Session Resource Setup List 9.3.3.17
pdus_setup_succ_rsp_info_t pdus_setup_succ_list[MAX_PDUS_PER_UE];
// PDU Session Resource Failed List 9.3.3.18
pdus_setup_fail_rsp_info_t pdus_setup_fail_list[MAX_PDUS_PER_UE];
// PDU Session Resource Modify List 9.3.3.19
pdus_modify_succ_rsp_info_t pdus_modify_succ_list[MAX_PDUS_PER_UE];
// PDU Session Resource Failed To Modify List 9.3.3.20
pdus_modify_fail_rsp_info_t pdus_modify_fail_list[MAX_PDUS_PER_UE];
} e1ap_bearer_ctx_modify_rsp_t;
pfm_retval_t e1ap_bearer_ctx_modify(
e1ap_bearer_ctx_modify_req_t *req,
e1ap_bearer_ctx_modify_rsp_t *rsp);
#endif