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
405f7780
Commit
405f7780
authored
Dec 28, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) replace pfSense_get_interface_addresses in is_jumbo_capable
parent
4a2cb5fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
interfaces.inc
src/etc/inc/interfaces.inc
+5
-7
No files found.
src/etc/inc/interfaces.inc
View file @
405f7780
...
@@ -3139,7 +3139,7 @@ function interface_configure($interface = 'wan', $reloadall = false, $linkupeven
...
@@ -3139,7 +3139,7 @@ function interface_configure($interface = 'wan', $reloadall = false, $linkupeven
/* skip vlans for checksumming and polling */
/* skip vlans for checksumming and polling */
if
(
!
stristr
(
$realif
,
"_vlan"
)
&&
is_array
(
$options
))
{
if
(
!
stristr
(
$realif
,
"_vlan"
)
&&
is_array
(
$options
))
{
legacy_interface_flags
(
$realhwif
,
interface_override_flags
());
legacy_interface_flags
(
$realhwif
,
interface_override_flags
()
,
false
);
}
}
$tunnelif
=
substr
(
$realif
,
0
,
3
);
$tunnelif
=
substr
(
$realif
,
0
,
3
);
...
@@ -5126,14 +5126,12 @@ function generate_random_mac_address()
...
@@ -5126,14 +5126,12 @@ function generate_random_mac_address()
******/
******/
function
is_jumbo_capable
(
$iface
)
function
is_jumbo_capable
(
$iface
)
{
{
$iface
=
trim
(
$iface
);
$intf_details
=
legacy_interface_details
(
trim
(
$iface
));
$capable
=
pfSense_get_interface_addresses
(
$iface
);
if
(
in_array
(
'vlan_mtu'
,
$intf_details
[
'capabilities'
]))
{
if
(
isset
(
$capable
[
'caps'
][
'vlanmtu'
]))
{
return
true
;
return
true
;
}
}
else
{
return
false
;
return
false
;
}
}
}
function
interface_setup_pppoe_reset_file
(
$pppif
,
$iface
=
''
)
function
interface_setup_pppoe_reset_file
(
$pppif
,
$iface
=
''
)
...
...
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