diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-11 12:58:45 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-05-11 12:58:45 +0000 |
commit | 92a899885cd371f83200ee66b3d16fcb62c7058c (patch) | |
tree | 18b951bdb79af12e2f1f285d56856d1cab0ac3ef | |
parent | 9bd209dd149328578e191bc798d6fa2fa8d303d1 (diff) | |
download | drakx-net-92a899885cd371f83200ee66b3d16fcb62c7058c.tar drakx-net-92a899885cd371f83200ee66b3d16fcb62c7058c.tar.gz drakx-net-92a899885cd371f83200ee66b3d16fcb62c7058c.tar.bz2 drakx-net-92a899885cd371f83200ee66b3d16fcb62c7058c.tar.xz drakx-net-92a899885cd371f83200ee66b3d16fcb62c7058c.zip |
Using correct sysctl variable (#50807).
-rw-r--r-- | lib/network/network.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/network/network.pm b/lib/network/network.pm index d500dca..79c63b0 100644 --- a/lib/network/network.pm +++ b/lib/network/network.pm @@ -449,7 +449,7 @@ sub advanced_settings_read { my $log_martians = grep { /^net\.ipv4\.conf\.all\.log_martians\s*=\s*1$/ } cat_($sysctl); my $disable_icmp = grep { /^net\.ipv4\.icmp_echo_ignore_all\s*=\s*1$/ } cat_($sysctl); my $disable_icmp_broadcasts = grep { /^net\.ipv4\.icmp_echo_ignore_broadcasts\s*=\s*1$/ } cat_($sysctl); - my $disable_bogus_error_responses = grep { /^net\.ipv4\.ignore_bogus_error_responses\s*=\s*1$/ } cat_($sysctl); + my $disable_bogus_error_responses = grep { /^net\.ipv4\.icmp_ignore_bogus_error_responses\s*=\s*1$/ } cat_($sysctl); my $msec = grep { /^BASE_LEVEL=/ } cat_($msecconf); { ipv6_disabled => $ipv6_disabled, disable_window_scaling => $disable_window_scaling, @@ -472,7 +472,7 @@ sub advanced_settings_write { # sysctl substInFile { # remove old entries - /^net\.ipv4\.(tcp_window_scaling|tcp_timestamps|conf\.all\.log_martians|icmp_echo_ignore_all|icmp_echo_ignore_broadcasts|ignore_bogus_error_responses).*/ and $_=""; + /^net\.ipv4\.(tcp_window_scaling|tcp_timestamps|conf\.all\.log_martians|icmp_echo_ignore_all|icmp_echo_ignore_broadcasts|icmp_ignore_bogus_error_responses).*/ and $_=""; if (eof) { # add new values my $window_scaling = ($u->{disable_window_scaling}) ? "0" : "1"; @@ -486,7 +486,7 @@ sub advanced_settings_write { $_ .= "net.ipv4.conf.all.log_martians=$log_martians\n"; $_ .= "net.ipv4.icmp_echo_ignore_all=$disable_icmp\n"; $_ .= "net.ipv4.icmp_echo_ignore_broadcasts=$disable_icmp_broadcasts\n"; - $_ .= "net.ipv4.ignore_bogus_error_responses=$disable_bogus_error_responses\n"; + $_ .= "net.ipv4.icmp_ignore_bogus_error_responses=$disable_bogus_error_responses\n"; } } "$::prefix/etc/sysctl.conf"; } |