blob: d39087885066670d98692e20e8e0b05eeb12917d [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
3 * Copyright (c) 2017 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef __S11_COMMON_PROC_INFO_H_
19#define __S11_COMMON_PROC_INFO_H_
20
21#include "err_codes.h"
22#include "s1ap_structs.h"
23#include "s1ap_ie.h"
24#include "s11_structs.h"
25
26struct s1ap_common_req_Q_msg {
27 int IE_type;
28 int ue_idx;
29 int enb_fd;
30 int enb_s1ap_ue_id;
31 int mme_s1ap_ue_id;
32 enum s1ap_cn_domain cn_domain;
33 unsigned char imsi[BINARY_IMSI_LEN];
34 struct TAI tai;//TODO: will be list of 16 TAI's for UE.
35 s1apCause_t cause;
36
37 unsigned long ueag_max_ul_bitrate;
38 unsigned long ueag_max_dl_bitrate;
39 struct fteid gtp_teid;
40 unsigned char sec_key[32];
41 unsigned char bearer_id;
42};
43
44struct s11_req_Q_msg {
45 int IE_type;
46 struct fteid s11_sgw_c_fteid;
47};
48
49struct s11_resp_Q_msg {
50 int IE_type;
51 int ue_idx;
52};
53
54enum s1ap_common_req_type
55{
56 S1AP_CTX_REL_REQ,
57 S1AP_CTX_REL_CMD,
58 S1AP_INIT_CTXT_SETUP_REQ,
59 S1AP_PAGING_REQ,
60 S1AP_REQ_UNKNOWN
61};
62
63enum s11_common_req_type
64{
65 S11_RABR_REQ,
66 S11_REQ_UNKNOWN
67};
68
69enum s11_common_resp_type
70{
71 S11_RABR_RESP,
72 S11_RESP_UNKNOWN
73};
74
75#define S1AP_COMMON_REQ_BUF_SIZE sizeof(struct s1ap_common_req_Q_msg)
76
77#define S11_COMM_REQ_STAGE_BUF_SIZE sizeof(struct s11_req_Q_msg)
78#define S11_COMM_RES_STAGE_BUF_SIZE sizeof(struct s11_resp_Q_msg)
79
80#endif /*__S11_COMMON_PROC_INFO_H_*/
81