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
spbro
OpenXG-RAN
Commits
9fedbf31
Commit
9fedbf31
authored
Jun 06, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove nas_config_mbms()
Remove nas_config_mbms() since nas_config_mbms() and nas_config() do the same
parent
380cf5c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
55 deletions
+3
-55
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+3
-3
openair2/RRC/NAS/nas_config.c
openair2/RRC/NAS/nas_config.c
+0
-39
openair2/RRC/NAS/nas_config.h
openair2/RRC/NAS/nas_config.h
+0
-13
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
9fedbf31
...
...
@@ -2304,20 +2304,20 @@ uint64_t pdcp_module_init( uint64_t pdcp_optmask, int id) {
if
(
IS_SOFTMODEM_NOS1
)
nas_config
(
1
,
1
,
2
,
"oaitun_ue"
);
netlink_init_mbms_tun
(
"oaitun_uem"
,
id
+
1
);
nas_config
_mbms
(
1
,
2
,
2
,
"oaitun_uem"
);
nas_config
(
1
,
2
,
2
,
"oaitun_uem"
);
LOG_I
(
PDCP
,
"UE pdcp will use tun interface
\n
"
);
}
else
if
(
ENB_NAS_USE_TUN
)
{
netlink_init_tun
(
"oaitun_enb"
,
1
,
0
);
nas_config
(
1
,
1
,
1
,
"oaitun_enb"
);
if
(
pdcp_optmask
&
ENB_NAS_USE_TUN_W_MBMS_BIT
)
{
netlink_init_mbms_tun
(
"oaitun_enm"
,
1
);
nas_config
_mbms
(
1
,
2
,
1
,
"oaitun_enm"
);
nas_config
(
1
,
2
,
1
,
"oaitun_enm"
);
LOG_I
(
PDCP
,
"ENB pdcp will use mbms tun interface
\n
"
);
}
LOG_I
(
PDCP
,
"ENB pdcp will use tun interface
\n
"
);
}
else
if
(
pdcp_optmask
&
ENB_NAS_USE_TUN_W_MBMS_BIT
)
{
netlink_init_mbms_tun
(
"oaitun_enm"
,
0
);
nas_config
_mbms
(
1
,
2
,
1
,
"oaitun_enm"
);
nas_config
(
1
,
2
,
1
,
"oaitun_enm"
);
LOG_I
(
PDCP
,
"ENB pdcp will use mbms tun interface
\n
"
);
}
...
...
openair2/RRC/NAS/nas_config.c
View file @
9fedbf31
...
...
@@ -149,45 +149,6 @@ static int bringInterfaceUp(char *interfaceName, int up)
return
0
;
}
int
nas_config_mbms
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
const
char
*
ifname
)
{
//char buf[5];
char
ipAddress
[
20
];
char
broadcastAddress
[
20
];
char
interfaceName
[
20
];
int
returnValue
;
//if(strcmp(ifname,"ue") == 0)
//sprintf(ipAddress, "%s.%d.%d", "20.0",thirdOctet,fourthOctet);
////else
sprintf
(
ipAddress
,
"%s.%d.%d"
,
baseNetAddress
,
thirdOctet
,
fourthOctet
);
sprintf
(
broadcastAddress
,
"%s.%d.255"
,
baseNetAddress
,
thirdOctet
);
sprintf
(
interfaceName
,
"%s%d"
,
ifname
,
interface_id
);
bringInterfaceUp
(
interfaceName
,
0
);
// sets the machine address
returnValue
=
setInterfaceParameter
(
interfaceName
,
ipAddress
,
SIOCSIFADDR
);
// sets the machine network mask
if
(
!
returnValue
)
returnValue
=
setInterfaceParameter
(
interfaceName
,
netMask
,
SIOCSIFNETMASK
);
// sets the machine broadcast address
if
(
!
returnValue
)
returnValue
=
setInterfaceParameter
(
interfaceName
,
broadcastAddress
,
SIOCSIFBRDADDR
);
if
(
!
returnValue
)
bringInterfaceUp
(
interfaceName
,
1
);
if
(
!
returnValue
)
LOG_I
(
OIP
,
"Interface %s successfully configured, ip address %s, mask %s broadcast address %s
\n
"
,
interfaceName
,
ipAddress
,
netMask
,
broadcastAddress
);
else
LOG_E
(
OIP
,
"Interface %s couldn't be configured (ip address %s, mask %s broadcast address %s)
\n
"
,
interfaceName
,
ipAddress
,
netMask
,
broadcastAddress
);
return
returnValue
;
}
// non blocking full configuration of the interface (address, and the two lest octets of the address)
int
nas_config
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
const
char
*
ifpref
)
{
...
...
openair2/RRC/NAS/nas_config.h
View file @
9fedbf31
...
...
@@ -51,19 +51,6 @@ void nas_getparams(void);
*/
int
nas_config
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
const
char
*
ifprefix
);
/*! \fn int nas_config_mbms(char*, int, int)
* \brief This function initializes the nasmesh interface using the basic values,
* basic address, network mask and broadcast address, as the default configured
* ones
* \param[in] interfaceName, the name of the interface, e.g. nasmesh0 or nasmesh1
* \param[in] third octet of the ip address e.g. for the 10.1.2.3 address would be 2
* \param[in] fourth octet of the ip address e.g. for the 10.1.2.3 address would be 3
* \return 0 on success, otherwise 1, if couldn't open a socket and 2 if the ioctl fails
* \note
* @ingroup _nas
*/
int
nas_config_mbms
(
int
interface_id
,
int
thirdOctet
,
int
fourthOctet
,
const
char
*
ifname
);
/*! \fn void setBaseNetAddress(char*)
* \brief This function sets the basic network address used
* \param[in] baseAddr, the new basic address e.g.for 10.0.1.2, would be 10.0
...
...
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