Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ffbb29e4
Commit
ffbb29e4
authored
Sep 18, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(interfaces.inc) move single used find_interface_subnetv6() into get_interface_subnetv6()
parent
4461ea23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
interfaces.inc
src/etc/inc/interfaces.inc
+5
-14
No files found.
src/etc/inc/interfaces.inc
View file @
ffbb29e4
...
...
@@ -4397,17 +4397,6 @@ function find_interface_subnet($interface)
return
null
;
}
function
find_interface_subnetv6
(
$interface
)
{
$interface
=
trim
(
$interface
);
if
(
does_interface_exist
(
$interface
))
{
$ifinfo
=
legacy_get_interface_addresses
(
$interface
);
if
(
isset
(
$ifinfo
[
'subnetbits6'
]))
{
return
$ifinfo
[
'subnetbits6'
];
}
}
return
null
;
}
function
ip_in_interface_alias_subnet
(
$interface
,
$ipalias
)
{
...
...
@@ -4552,9 +4541,11 @@ function get_interface_subnetv6($interface = "wan")
}
}
$cursn
=
find_interface_subnetv6
(
$realif
);
if
(
!
empty
(
$cursn
))
{
return
$cursn
;
if
(
does_interface_exist
(
$realif
))
{
$ifinfo
=
legacy_get_interface_addresses
(
$realif
);
if
(
isset
(
$ifinfo
[
'subnetbits6'
]))
{
return
$ifinfo
[
'subnetbits6'
];
}
}
return
null
;
...
...
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