mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
interfaces: adjust MTU before creating IPv4 config
This is possible now since we no longer set the MTU on the PPP device, wich is not created before IPv4 handling. We may have to add the MTU to the PPPoE device as well, but from the looks of it this does not matter for one reason or another.
This commit is contained in:
parent
74bf687034
commit
40f36da905
@ -2294,6 +2294,10 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal
|
||||
/* apply interface hardware settings (tso, lro, ..) */
|
||||
configure_interface_hardware($realhwif, $ifconfig_details);
|
||||
|
||||
if (!empty($wancfg['mtu']) && strpos($realhwif, '/') === false) {
|
||||
interface_configure_mtu($realhwif, $wancfg['mtu'], $ifconfig_details);
|
||||
}
|
||||
|
||||
switch ($wancfg['ipaddr'] ?? '') {
|
||||
case 'dhcp':
|
||||
interface_dhcp_configure($interface);
|
||||
@ -2359,10 +2363,6 @@ function interface_configure($verbose = false, $interface = 'wan', $reload = fal
|
||||
mwexecf('/sbin/ifconfig %s inet6 description %s up', [$realifv6, $interface_descr]);
|
||||
}
|
||||
|
||||
if (!empty($wancfg['mtu']) && strpos($realhwif, '/') === false) {
|
||||
interface_configure_mtu($realhwif, $wancfg['mtu'], $ifconfig_details);
|
||||
}
|
||||
|
||||
interfaces_vips_configure($interface);
|
||||
|
||||
/* XXX device plugin hook */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user