Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
2e2b07ef
Commit
2e2b07ef
authored
May 22, 2017
by
shahab SHARIATBAGHERI
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push update load
parent
689eae92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
openair2/ENB_APP/flexran_agent_common.c
openair2/ENB_APP/flexran_agent_common.c
+5
-2
No files found.
openair2/ENB_APP/flexran_agent_common.c
View file @
2e2b07ef
...
@@ -26,8 +26,9 @@
...
@@ -26,8 +26,9 @@
* \version 0.1
* \version 0.1
*/
*/
#include<stdio.h>
#include
<stdio.h>
#include <time.h>
#include <time.h>
#include <sys/stat.h>
#include "flexran_agent_common.h"
#include "flexran_agent_common.h"
#include "flexran_agent_common_internal.h"
#include "flexran_agent_common_internal.h"
...
@@ -386,7 +387,7 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
...
@@ -386,7 +387,7 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
Protocol__FlexControlDelegation
*
control_delegation_msg
=
input
->
control_delegation_msg
;
Protocol__FlexControlDelegation
*
control_delegation_msg
=
input
->
control_delegation_msg
;
// struct timespec vartime = timer_start();
// struct timespec vartime = timer_start();
int
status
;
//Write the payload lib into a file in the cache and load the lib
//Write the payload lib into a file in the cache and load the lib
char
lib_name
[
120
];
char
lib_name
[
120
];
char
target
[
512
];
char
target
[
512
];
...
@@ -394,6 +395,8 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
...
@@ -394,6 +395,8 @@ int flexran_agent_control_delegation(mid_t mod_id, const void *params, Protocol_
strcpy
(
target
,
local_cache
);
strcpy
(
target
,
local_cache
);
strcat
(
target
,
lib_name
);
strcat
(
target
,
lib_name
);
status
=
mkdir
(
local_cache
,
S_IRWXU
|
S_IRWXG
|
S_IRWXO
);
FILE
*
f
;
FILE
*
f
;
f
=
fopen
(
target
,
"wb"
);
f
=
fopen
(
target
,
"wb"
);
fwrite
(
control_delegation_msg
->
payload
.
data
,
control_delegation_msg
->
payload
.
len
,
1
,
f
);
fwrite
(
control_delegation_msg
->
payload
.
data
,
control_delegation_msg
->
payload
.
len
,
1
,
f
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment