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
c782d9e8
Commit
c782d9e8
authored
Sep 14, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused link_ip_to_carp_interface in interfaces.inc
parent
5c6a2ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
interfaces.inc
src/etc/inc/interfaces.inc
+0
-39
No files found.
src/etc/inc/interfaces.inc
View file @
c782d9e8
...
...
@@ -4260,45 +4260,6 @@ function guess_interface_from_ip($ipaddress)
}
/****f* interfaces/link_ip_to_carp_interface
* NAME
* link_ip_to_carp_interface - Find where a CARP interface links to.
* INPUTS
* $ip
* RESULT
* $carp_ints
******/
function
link_ip_to_carp_interface
(
$ip
)
{
global
$config
;
if
(
!
is_ipaddr
(
$ip
))
{
return
;
}
$carp_ints
=
''
;
if
(
isset
(
$config
[
'virtualip'
][
'vip'
]))
{
$first
=
0
;
$carp_int
=
array
();
foreach
(
$config
[
'virtualip'
][
'vip'
]
as
$vip
)
{
if
(
$vip
[
'mode'
]
==
"carp"
)
{
$carp_ip
=
$vip
[
'subnet'
];
$carp_sn
=
$vip
[
'subnet_bits'
];
$carp_nw
=
gen_subnet
(
$carp_ip
,
$carp_sn
);
if
(
ip_in_subnet
(
$ip
,
"
{
$carp_nw
}
/
{
$carp_sn
}
"
))
{
$carp_int
[]
=
get_real_interface
(
$vip
[
'interface'
]);
}
}
}
if
(
!
empty
(
$carp_int
))
{
$carp_ints
=
implode
(
" "
,
array_unique
(
$carp_int
));
}
}
return
$carp_ints
;
}
function
link_interface_to_track6
(
$int
,
$action
=
''
)
{
global
$config
;
...
...
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