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
cd41d6b9
Commit
cd41d6b9
authored
Jul 13, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) disable vlan hw options
https://github.com/opnsense/core/issues/252
parent
a3a5f91a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
interfaces.inc
src/etc/inc/interfaces.inc
+5
-2
No files found.
src/etc/inc/interfaces.inc
View file @
cd41d6b9
...
@@ -262,8 +262,11 @@ function interface_vlan_configure(&$vlan) {
...
@@ -262,8 +262,11 @@ function interface_vlan_configure(&$vlan) {
/* make sure the parent interface is up */
/* make sure the parent interface is up */
interfaces_bring_up
(
$if
);
interfaces_bring_up
(
$if
);
if
(
!
isset
(
$config
[
'system'
][
'disablevlanhwfilter'
]))
{
/* Since we are going to add vlan(4) try to enable all that hardware supports. */
/* Since we are going to add vlan(4) try to enable all that hardware supports. */
/* (but only when not disabled in system advanced network settings) */
legacy_interface_flags
(
$if
,
'vlanhwtag vlanmtu vlanhwfilter'
);
legacy_interface_flags
(
$if
,
'vlanhwtag vlanmtu vlanhwfilter'
);
}
if
(
!
empty
(
$vlanif
)
&&
does_interface_exist
(
$vlanif
))
{
if
(
!
empty
(
$vlanif
)
&&
does_interface_exist
(
$vlanif
))
{
interface_bring_down
(
$vlanif
,
true
);
interface_bring_down
(
$vlanif
,
true
);
...
...
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