blob: 5f18140beb2eefbb6e1e5feae782f53d578945b3 [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 __S1AP_CONFIG_H_
19#define __S1AP_CONFIG_H_
20
21#include <stdbool.h>
22#include "s1ap_structs.h"
23
24#define MME_NAME_LEN 256
25
26/**
27 * s1ap interface configuration parameters
28 */
29typedef struct s1ap_config
30{
31 unsigned short sctp_port;
32 unsigned short enb_port;
33 unsigned int enb_ip;
34 char *mme_name;
35 unsigned int s1ap_local_ip;
36 unsigned short mme_group_id;
37 unsigned short max_enbs_cnt;
38 unsigned char rel_cap;
39 unsigned char mme_code;
40 char sctp_type; /* sctp, udp */
41 struct PLMN mme_plmn_id;
42 struct PLMN target_mme_plmn_id;
43} s1ap_config;
44
45void
46init_parser(char *path);
47
48int
49parse_s1ap_conf();
50
51#endif /*__S1AP_CONFIG_H_*/