mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(legacy) disable vlan hw options https://github.com/opnsense/core/issues/252
This commit is contained in:
parent
a3a5f91ac6
commit
cd41d6b95c
@ -262,8 +262,11 @@ function interface_vlan_configure(&$vlan) {
|
||||
|
||||
/* make sure the parent interface is up */
|
||||
interfaces_bring_up($if);
|
||||
/* Since we are going to add vlan(4) try to enable all that hardware supports. */
|
||||
legacy_interface_flags($if, 'vlanhwtag vlanmtu vlanhwfilter');
|
||||
if (!isset($config['system']['disablevlanhwfilter'])) {
|
||||
/* 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');
|
||||
}
|
||||
|
||||
if (!empty($vlanif) && does_interface_exist($vlanif)) {
|
||||
interface_bring_down($vlanif, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user