Compare commits

...

2 Commits

Author SHA1 Message Date
nymphe
4997694680 agent 2020-08-06 10:45:36 +02:00
Robert Schmidt
80596b284a FlexRAN: Add control_delegation_request protobuf message 2020-07-28 17:02:49 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import "time_common.proto";
import "config_messages.proto";
import "controller_commands.proto";
import "config_common.proto";
import "control_delegation.proto";
message flexran_message {
optional flexran_direction msg_dir = 100;
@@ -32,6 +33,7 @@ message flexran_message {
flex_ul_mac_config ul_mac_config_msg = 19;
flex_disconnect disconnect_msg = 20;
flex_ho_command ho_command_msg = 21;
flex_control_delegation_request control_del_req_msg = 22;
}
}
@@ -230,6 +232,12 @@ message flex_control_delegation {
optional string name = 4; // The delegated functions names ordered based on bitmap flags
}
message flex_control_delegation_request {
optional flex_header header = 1;
optional flex_control_delegation_type delegation_type = 2;
optional string name = 4;
}
//
// Agent reconfiguration message
//

View File

@@ -435,7 +435,8 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
f = fopen(target, "wb");
if (f) {
fwrite(control_delegation_msg->payload.data, control_delegation_msg->payload.len, 1, f);
LOG_W(FLEXRAN_AGENT, "exist\n");
fwrite(control_delegation_msg->payload.data, control_delegation_msg->payload.len, 1, f);
fclose(f);
} else {
LOG_W(FLEXRAN_AGENT, "[%d] can not write control delegation data to %s\n",