#!/usr/bin/perl # # $Copyright$ # # $Id: receiveEchoRequest_sendEchoReply_GA.seq,v 1.1.1.1 2000/10/31 22:38:50 sekiya Exp $ ######################################################################## BEGIN { $V6evalTool::TestVersion = '$Name: $'; } use V6evalTool; use icmp; $IF=Link0; checkNUT(hostrouter); vCapture($IF); $ret=makeNCE_TN_GA(); if( $ret !=0) { vLog("NUT can not be initialized !!"); goto error; }else { vLog("*** TN can make TN's global address NCE in TN ***"); } vSend($IF, echo_request_tn2nut_GA); %ret=vRecv($IF,5,0,0,echo_reply_nut2tn_GA); if( $ret{status} !=0) { vLog("TN can not receive Echo Reply from NUT"); goto error; }elsif($ret{recvFrame} eq 'echo_reply_nut2tn_GA') { vLog("TN can receive Echo Reply from NUT"); vLog("OK"); exit $V6evalTool::exitPass; }else { vLog("TN receive unexpected packets from NUT"); goto error; } error: vLog("FAIL"); exit $V6evalTool::exitFail; ######################################################################## __END__ =head1 NAME receiveEchoRequest_sendEchoReply_GA.seq - check that sending and receiving Echo Request and Echo Reply (Global Address) =head1 TARGET Host and Router =head1 SYNOPSIS receiveEchoRequest_sendEchoReply_GA.seq [-tooloption ...] -p receiveEchoRequest_sendEchoReply_GA.def =head1 INITIALIZATION When test stars, states of Neighbor Cache Entry for TN's addresses are reachable. =head1 TEST PROCEDURE This test verifies that NUT sends valid ICMPv6 Echo Request and received valid ICMPv6 Echo Reply. TN NUT --------------------------- 1. === ICMPv6 Echo Request ===> src address : TN global address dst address : NUT global address 2. << JUDGMENT >> <=== ICMPv6 Echo Reply === src address : NUT global address dst address : TN global address =head1 JUDGMENT << PASS >> NUT received ICMPv6 Echo Reply << FAIL >> NUT do not received ICMPv6 Echo Reply =head1 SEE ALSO perldoc V6evalTool =cut