diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-13 03:56:23 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-02-13 03:56:23 +0000 |
commit | 8ddf43903706f70c8242a975e87d6c9c0e98dea3 (patch) | |
tree | bb981418776db1d79a7c7465b34ce54ca69a2273 /lib/network/connection.pm | |
parent | 8c859918a93bcb33f79a7e4796dfe90ee772cbb4 (diff) | |
download | drakx-net-8ddf43903706f70c8242a975e87d6c9c0e98dea3.tar drakx-net-8ddf43903706f70c8242a975e87d6c9c0e98dea3.tar.gz drakx-net-8ddf43903706f70c8242a975e87d6c9c0e98dea3.tar.bz2 drakx-net-8ddf43903706f70c8242a975e87d6c9c0e98dea3.tar.xz drakx-net-8ddf43903706f70c8242a975e87d6c9c0e98dea3.zip |
Preserving MTU settings (#45969).
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r-- | lib/network/connection.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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 |