#!/usr/local/bin/perl # # An OpenSLP webmin module # by Monty Charlton , # # Copyright (c) 2000 Caldera Systems # # Permission to use, copy, modify, and distribute this software and its # documentation under the terms of the GNU General Public License is hereby # granted. No representations are made about the suitability of this software # for any purpose. It is provided "as is" without express or implied warranty. # See the GNU General Public License for more details. # require './slp-lib.pl'; &ui_print_header(undef, $text{'netcfg_title'}, ""); local $netcfg = &get_netcfg_config(); print "
\n"; print "\n"; print "\n"; print "
$text{'netcfg_title'}
\n"; if ($netcfg->{'isBroadcastOnly'} !~ /^true$/i || $netcfg->{'isBroadcastOnlyDisabled'}) { $false = " checked"; } else { $true = " checked"; } print "\n"; print "\n"; local $true=""; local $false=""; if ($netcfg->{'passiveDADetection'} !~ /^false$/i || $netcfg->{'passiveDADetectionDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'activeDADetection'} !~ /^false$/i || $netcfg->{'activeDADetectionDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'DAActiveDiscoveryIntervalDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'multicastTTLDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'DADiscoveryMaximumWaitDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'DADiscoveryTimeoutsDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'HintsFileDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'multicastMaximumWaitDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'multicastTimeoutsDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'unicastMaximumWaitDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'randomWaitBoundDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print ""; $true=""; $false=""; if ($netcfg->{'MTUDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "\n"; $true=""; $false=""; if ($netcfg->{'interfacesDisabled'}) { $true = " checked"; } else { $false = " checked"; } print "\n"; print "
$text{'netcfg_isBroadcastOnly'}\n"; print "\n"; print "True  
"; print "\n"; print "False (default)"; print "
      $text{'netcfg_passiveDADetection'}\n"; print "\n"; print "True (default) 
"; print "\n"; print "False "; print "

$text{'netcfg_activeDADetection'}\n"; print "\n"; print "True (default) 
"; print "\n"; print "False "; print "
      $text{'netcfg_DAActiveDiscoveryInterval'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'DAActiveDiscoveryInterval'}; print "

$text{'netcfg_multicastTTL'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'multicastTTL'}; print "
      $text{'netcfg_DADiscoveryMaximumWait'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'DADiscoveryMaximumWait'}; print "

$text{'netcfg_DADiscoveryTimeouts'}\n"; print "
\n"; print "\n"; print "Default "; print "\n"; for ($i=0; $i<5; $i++) { printf "
\n", $netcfg->{'DADiscoveryTimeouts'}->[$i]; } print "
      $text{'netcfg_HintsFile'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'HintsFile'}; print "

$text{'netcfg_multicastMaximumWait'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'multicastMaximumWait'}; print "
      $text{'netcfg_multicastTimeouts'}\n"; print "
\n"; print "\n"; print "Default "; print "\n"; for ($i=0; $i<5; $i++) { printf "
\n", $netcfg->{'multicastTimeouts'}->[$i]; } print "

$text{'netcfg_unicastMaximumWait'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'unicastMaximumWait'}; print "
      $text{'netcfg_randomWaitBound'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'randomWaitBound'}; print "

$text{'netcfg_MTU'}\n"; print "\n"; print "Default "; print "\n"; print " "; printf "
\n", $netcfg->{'MTU'}; print "
      $text{'netcfg_interfaces'}\n"; print "
\n"; print "\n"; print "All "; print "\n"; for ($i=0; $i<5; $i++) { printf "
\n", $netcfg->{'interfaces'}->[$i]; } print "
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});