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
Michael Black
OpenXG-RAN
Commits
d3398332
Commit
d3398332
authored
May 30, 2020
by
Michael Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build issues
parent
d6b038fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
nfapi/oai_integration/nfapi.c
nfapi/oai_integration/nfapi.c
+1
-1
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+5
-2
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+1
-0
No files found.
nfapi/oai_integration/nfapi.c
View file @
d3398332
...
...
@@ -23,7 +23,7 @@
#include <pthread.h>
#include "nfapi/oai_integration/vendor_ext.h"
#include "common/utils/LOG/log.h"
static
char
nfapi_str_mode
[
6
][
24
]
=
{
"MONOLITHIC"
,
"PNF"
,
"VNF"
,
"UE_STUB_PNF"
,
"UE_STUB_OFFNET"
,
"STANDALONE_PNF"
,
"<UNKNOWN NFAPI MODE>"
};
static
char
nfapi_str_mode
[][
24
]
=
{
"MONOLITHIC"
,
"PNF"
,
"VNF"
,
"UE_STUB_PNF"
,
"UE_STUB_OFFNET"
,
"STANDALONE_PNF"
,
"<UNKNOWN NFAPI MODE>"
};
typedef
struct
{
nfapi_mode_t
nfapi_mode
;
...
...
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
d3398332
...
...
@@ -30,6 +30,7 @@
#include "targets/ARCH/ETHERNET/USERSPACE/LIB/if_defs.h"
#include "common/config/config_load_configmodule.h"
#include "common/config/config_userapi.h"
#include <arpa/inet.h>
extern
int
oai_nfapi_rach_ind
(
nfapi_rach_indication_t
*
rach_ind
);
void
configure_nfapi_pnf
(
char
*
vnf_ip_addr
,
...
...
@@ -1053,7 +1054,7 @@ int ue_init_standalone_socket(const char *addr, int port)
server_address
.
sin_family
=
AF_INET
;
server_address
.
sin_port
=
htons
(
port
);
int
sd
=
socket
(
address
.
sin_family
,
SOCK_STREAM
,
IPPROTO_SCTP
);
int
sd
=
socket
(
server_
address
.
sin_family
,
SOCK_STREAM
,
IPPROTO_SCTP
);
if
(
sd
<
0
)
{
LOG_E
(
MAC
,
"Socket creation error standalone PNF"
);
return
-
1
;
...
...
@@ -1061,11 +1062,13 @@ int ue_init_standalone_socket(const char *addr, int port)
if
(
inet_pton
(
server_address
.
sin_family
,
addr
,
&
server_address
.
sin_addr
)
<=
0
)
{
LOG_E
(
MAC
,
"Invalid standalone PNF Address"
);
close
(
sd
);
return
-
1
;
}
if
(
connect
(
s
ocket
,
(
struct
sockaddr
*
)
&
server_address
,
addr_len
)
<
0
)
{
if
(
connect
(
s
d
,
(
struct
sockaddr
*
)
&
server_address
,
addr_len
)
<
0
)
{
LOG_E
(
MAC
,
"Connection to standalone PNF failed"
);
close
(
sd
);
return
-
1
;
}
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
d3398332
...
...
@@ -66,6 +66,7 @@
#include "LAYER2/MAC/mac_proto.h"
#include "RRC/LTE/rrc_vars.h"
#include "PHY_INTERFACE/phy_interface_vars.h"
#include "PHY_INTERFACE/phy_stub_UE.h"
#include "PHY/TOOLS/phy_scope_interface.h"
#include "common/utils/LOG/log.h"
#include "nfapi/oai_integration/vendor_ext.h"
...
...
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