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
4ad7a3b6
Commit
4ad7a3b6
authored
Jul 09, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) some more isset issues in interfaces.inc
parent
e28ebb61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
interfaces.inc
src/etc/inc/interfaces.inc
+9
-2
No files found.
src/etc/inc/interfaces.inc
View file @
4ad7a3b6
...
...
@@ -1266,7 +1266,12 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
}
$track6
=
array
();
switch
(
$ifcfg
[
'ipaddrv6'
])
{
if
(
isset
(
$ifcfg
[
'ipaddrv6'
]))
{
$ipaddrv6
=
$ifcfg
[
'ipaddrv6'
];
}
else
{
$ipaddrv6
=
null
;
}
switch
(
$ipaddrv6
)
{
case
"slaac"
:
case
"dhcp6"
:
$pidv6
=
find_dhcp6c_process
(
$realif
);
...
...
@@ -1345,7 +1350,7 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
/* hostapd and wpa_supplicant do not need to be running when the interface is down.
* They will also use 100% CPU if running after the wireless clone gets deleted. */
if
(
is_array
(
$ifcfg
[
'wireless'
]))
{
if
(
is
set
(
$ifcfg
[
'wireless'
])
&&
is
_array
(
$ifcfg
[
'wireless'
]))
{
kill_hostapd
(
$realif
);
mwexec
(
kill_wpasupplicant
(
$realif
));
}
...
...
@@ -4559,6 +4564,8 @@ function find_interface_ip($interface, $flush = false) {
$ifinfo
=
pfSense_get_interface_addresses
(
$interface
);
if
(
isset
(
$ifinfo
[
'ipaddr'
]))
{
$interface_ip_arr_cache
[
$interface
]
=
$ifinfo
[
'ipaddr'
];
}
else
{
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