#!/usr/bin/perl # # $Copyright_v6PC$ # # $Copyright$ # # $TAHI: ct/nd/stopRA.seq,v 1.8 2004/04/02 02:28:24 akisada Exp $ ######################################################################## BEGIN { $V6evalTool::TestVersion = '$Name: $ '; } use V6evalTool; use nd; use ra; my $wait_readout = $nd::DELAY_FIRST_PROBE_TIME + $nd::RETRANS_TIMER * $nd::MAX_UNICAST_SOLICIT + 1; ndOptions(@ARGV); # The following generate debugging messages. $nd::debug=$ndOpt_v|$ndOpt_vv; # You can specifies debug optons to a remote control program. # If you want to know more detail, please see the following: # - V6evalTool.pm: perldoc V6evalTool # - V6evalRemote.pm: perldoc V6evalRemote $nd::remote_debug="-o1" if $ndOpt_vv; # # # $type=$V6evalTool::NutDef{Type}; if($type eq host) { vLogHTML("This test is for the router only
"); exit $V6evalTool::exitRouterOnly; } $type=$V6evalTool::NutDef{Type}; if($type ne router) { vLogHTML(ndErrmsg("ERROR: $V6evalTool::NutDef{Type}: ". "Unknown target type
")); exit $V6evalTool::exitFail; } # # # raStopRA() || goto error; # # # vLogHTML("OK
"); exit $V6evalTool::exitIgnore; error: vLogHTML(ndErrmsg("NG
")); readout($IF, $wait_readout); exit $V6evalTool::exitFail; sub readout($$) { my ($if, $timeout) = @_; return(vRecv($if, $timeout, 0, 0)); } ######################################################################## __END__ =head1 NAME stopRA - stop to send router advertisement =head1 TARGET Router Only =head1 SYNOPSIS stopRA.seq [-tooloption ...] -p /dev/null =head1 INITIALIZATION Stop advertising RAs. =head1 TEST PROCEDURE N/A =head1 JUDGMENT N/A =head1 TERMINATION N/A =head1 NOTE The test invokes remote command - rtadvd.rmt. =head1 SEE ALSO perldoc V6evalTool perldoc V6evalRemote =cut