From 7bc73d5ee373393f464cc1fe819f4fab7478b01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Wed, 26 Nov 2014 20:54:41 +0100 Subject: Actually consider parentmtu 0 here to get the real value when unassgined --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc/interfaces.inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e9b8f6e..33f25c5 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3001,7 +3001,7 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven if ($wancfg['mtu'] > $parentmtu) log_error("There is a conflict on MTU between parent {$realhwif} and VLAN({$realif})"); } else - $parentmtu = get_interface_mtu($realhwif); + $parentmtu = 0; $parentmtu = interface_vlan_mtu_configured($realhwif, $parentmtu); -- cgit v1.1