#!/usr/bin/perl # # $Copyright$ # # $Id: destination_unreachable_code_three.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(router); vCapture($IF); $ret=makeNCE_TN_GA(); if( $ret !=0) { vLog("NUT can not be initialized !!"); exit $V6evalTool::exitFail; }else { vLog("*** TN can make TN's global address NCE in TN ***"); } vSend($IF, echo_request_tn2nut_source_GA_destination_NUT_LINK1_unknown); %ret=vRecv($IF,$icmp::wait_address_resolution,0,0,destination_unreachable_nut2tn_any_code_three); if( $ret{status} !=0) { vLog("TN can not receive ICMPv6 error message from NUT"); goto error; }elsif($ret{recvFrame} eq 'destination_unreachable_nut2tn_any_code_three') { 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 destination_unreachable_code_three.seq - check ICMPv6 Destination Unreachable code 3 =head1 TARGET Host and Router =head1 SYNOPSIS destination_unreachable_code_three.seq [-tooloption ...] -p destination_unreachable_code_three.def =head1 NETWORK CONFIGURATION This test is OFF-LINK Network Configuration test. Physical Network configuration --------------------------------------- | | NUT TN Logical Network Configuration TN | ---------------------------------- | NUT | ---------------------------------- | OFFLINKA Host =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 Destination Unreachable (code 3) in response to a packet which can not be delivered to destination address (e.g. Address Resolution in ND). TN NUT --------------------------- 1. === Echo Request packet ===> src address : TN link local address dst address : NUT Link1 unreachable address 2. << JUDGMENT >> <=== ICMPv6 Destination Unreachable === Code is 3 =head1 JUDGMENT << PASS >> NUT send ICMPv6 Destination Unreachable. << FAIL >> NUT do not send ICMPv6 Destination Unreachable. =head1 SEE ALSO perldoc V6evalTool =cut