From cd41d6b95cbfaf6f9b311fd9650a58662a98740f Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 13 Jul 2015 12:51:11 +0000 Subject: [PATCH] (legacy) disable vlan hw options https://github.com/opnsense/core/issues/252 --- src/etc/inc/interfaces.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index dab5c8e72..68cbac1be 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -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);