#!/usr/bin/perl
#
# $Copyright$
#
# $TAHI: ct/mip6-ha-19/DHAAD_Lowest.seq,v 1.3 2003/01/14 07:15:51 akisada Exp $
#
################################################################
BEGIN {$V6evalTool::TestVersion = '$Name: $';}
use V6evalTool;
use MIP6;
my $IF0 = 'Link0';
my $Link0_device = $V6evalTool::NutDef{'Link0_device'};
my $NutType = $V6evalTool::NutDef{'Type'};
if($V6evalTool::NutDef{'Type'} ne 'router') {
vLogHTML('This test is only for the router.
');
exit($V6evalTool::exitRouterOnly);
}
vCapture($IF0);
#--------------------------------------------------------------#
vLogHTML('INITIALIZATION
');
vClear($IF0);
if(MIP6_Initialize($IF0, $Link0_device) < 0) {
exit($V6evalTool::exitFail);
}
vLogHTML('Check Reachability
');
if(MIP6_CheckReachability($IF0) < 0) {
vLogHTML('Can\'t get Echo Reply
');
exit($V6evalTool::exitFail);
}
#--------------------------------------------------------------#
vLogHTML('TEST PROCEDURE
');
vClear($IF0);
vLogHTML('Receiving Router Advertisement Messages
');
MIP6_SendRA_HA1($IF0, 0x8000, 1800);
vLogHTML('Dynamic Home Agent Address Discovery
');
if(MIP6_DHAAD($IF0, 'HAADReq', 'HAADRep') < 0) {
vLogHTML('Can\'t get HAAD Reply
');
exit($V6evalTool::exitWarn);
}
vStop($IF0);
vLogHTML('PASS
');
exit($V6evalTool::exitPass);
#
# perldoc
#
################################################################
__END__
=head1 NAME
DHAAD_Lowest - Receiving Local RA Msgs w/ the Lowest Prf
=head1 TARGET
=begin html
Router=end html =head1 SYNOPSIS =begin html
DHAAD_Lowest.seq [-tooloption ...] -pkt DHAAD_Lowest.def
=end html =head1 TOPOLOGY =begin html-tooloption: v6eval tool option
MN' TN | | --------+-------+-------+------- LinkX | NUT R0 MN HA1 | | | | --------+-------+-------+-------+------- Link0
=end html =head1 INITIALIZATION =begin html
Link0 global 3ffe:501:ffff:100::/64 home link site-local fec0:0:0:100::/64 LinkX global 3ffe:501:ffff:102::/64 foreign link R0(Link0) global 3ffe:501:ffff:100::a0a0 ether 00:00:00:00:a0:a0 HA1 global 3ffe:501:ffff:100::b0b0 link-local fe80::200:ff:fe00:b0b0 ether 00:00:00:00:b0:b0 MN global 3ffe:501:ffff:100:200:ff:fe00:24 home address MN' global 3ffe:501:ffff:102:200:ff:fe00:24 care-of address TN global 3ffe:501:ffff:102:<TN>
NUT TN | | | <---- | Echo Request | ----> | Echo Reply | |
1. Send Echo Request 2. Wait Echo Reply 3. Receive Echo Reply=end html =head1 TEST PROCEDURE =begin html
NUT MN HA1 MN' | | | | | <-- | | | RS | | <-- | | RA | | | | | <-------------------- | HAAD Request | --------------------> | HAAD Reply | | | |
1. Send RS 2. Send RA 3. Send HAAD Request 4. Wait HAAD Reply 5. Receive HAAD Reply=end html =head1 JUDGEMENT =begin html
PASS: MN' receives HAAD Reply WARN: no response=end html =head1 SEE ALSO =begin html
MIP6.pm MIP6.def=end html =cut