From 8ddf43903706f70c8242a975e87d6c9c0e98dea3 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 13 Feb 2009 03:56:23 +0000 Subject: Preserving MTU settings (#45969). --- lib/network/connection.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/network/connection.pm b/lib/network/connection.pm index 013441b..3a36741 100644 --- a/lib/network/connection.pm +++ b/lib/network/connection.pm @@ -146,6 +146,7 @@ sub load_interface_settings { $self->{control}{onboot} = $self->get_ifcfg_bool('ONBOOT'); $self->{control}{userctl} = $self->get_ifcfg_bool('USERCTL'); $self->{control}{metric} = $self->{ifcfg}{METRIC}; + $self->{control}{mtu} = $self->{ifcfg}{MTU}; } #- override to return 1 if the connection network scan is slow @@ -249,6 +250,7 @@ sub build_ifcfg_settings { ONBOOT => bool2yesno($self->{control}{onboot}), USERCTL => bool2yesno($self->{control}{userctl}), METRIC => $self->{control}{metric}, + MTU => $self->{control}{mtu}, VPN_TYPE => defined $self->{control}{vpn} && $self->{control}{vpn}->get_type, VPN_NAME => defined $self->{control}{vpn} && $self->{control}{vpn}->get_name, #- FIXME: add MS_DNSx variables if DNS servers are specified -- cgit v1.2.1