forked from wineslab/e2protobuf
-
Notifications
You must be signed in to change notification settings - Fork 13
/
gnb_message_handlers.h
41 lines (33 loc) · 1.33 KB
/
gnb_message_handlers.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
//
// Created by root on 10/28/22.
//
#ifndef OPENAIRINTERFACE_E2_MESSAGE_HANDLERS_H
#define OPENAIRINTERFACE_E2_MESSAGE_HANDLERS_H
#endif //OPENAIRINTERFACE_E2_MESSAGE_HANDLERS_H
#include "oai-oran-protolib/builds/ran_messages.pb-c.h"
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <string.h>
#include <stdbool.h>
typedef struct sockaddr_in sockaddr_in;
void handle_subscription(RANMessage* in_mess);
void handle_indication_request(RANMessage* in_mess,int out_socket, sockaddr_in servaddr);
void build_indication_response(RANMessage* in_mess, int out_socket, sockaddr_in servaddr);
void handle_control(RANMessage* in_mess);
const char* get_enum_name(RANParameter ran_par_enum);
void ran_write(RANParamMapEntry* target_param_map_entry);
char* int_to_charray(int i);
void handle_master_message(void* buf, int buflen, int out_socket, struct sockaddr_in servaddr);
UeListM* build_ue_list_message();
void ran_read(RANParameter ran_par_enum, RANParamMapEntry* map_entry);
// functions to free memory
void free_ran_param_map(RANParamMapEntry **map);
void free_ue_list(UeListM* ue_list_m);
// specific ran write functions
void set_ue_properties(int rnti, bool prop_1, float prop_2);
void apply_properties_to_ue_list(UeListM* ue_list);
void initialize_ues_if_needed();