");
}
my $strIndexBase = "Frame_Ether.Packet_IPv6.Upp_UDP";
if ($rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.HopCount"} !=
$rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.HopCount"}){
dhcpExitError("The HopCount isn\'t same between Relay Forward Msg & Relay Reply Msg
");
}else{
my $msg = "HopCount matched.:";
$msg .= $rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.HopCount"};
$msg .= " == ";
$msg .= $rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.HopCount"};
$msg .= "
";
vLogHTML($msg);
}
if ($rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.LinkAddr"} !=
$rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.LinkAddr"}){
dhcpExitError("The LinkAddr isn\'t same between Relay Forward Msg & Relay Reply Msg
");
}else{
my $msg = "LinkAddr matched.:";
$msg .= $rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.LinkAddr"};
$msg .= " == ";
$msg .= $rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.LinkAddr"};
$msg .= "
";
vLogHTML($msg);
}
if ($rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.PeerAddr"} !=
$rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.PeerAddr"}){
dhcpExitError("The PeerAddr isn\'t same between Relay Forward Msg & Relay Reply Msg
");
}else{
my $msg = "PeerAddr matched.:";
$msg .= $rfsol1{"$strIndexBase.Udp_DHCPv6_RelayForward.PeerAddr"};
$msg .= " == ";
$msg .= $rrrep2{"$strIndexBase.Udp_DHCPv6_RelayReply.PeerAddr"};
$msg .= "
";
vLogHTML($msg);
}
# check options in reply Message
dhcpExitFail() if (0 != options_exist(\%rrrep2, ($CMP_RELAYMSG)));
if(0!= options_exist(\%rrrep2,$CMP_IID)){
dhcpExitError("The expected Interface-id option can not be found.");
}
my $option_length = $rrrep2{"Frame_Ether.Packet_IPv6.Upp_UDP.Udp_DHCPv6_RelayReply.Opt_DHCPv6_IID.Length"};
if($option_length == 0){
vLogHTML('IID option length is zero.
');
dhcpExitFail;
}
dhcpExitError("NG: The interface ID is not correct in Relay-reply Message.
") if (0 !=compare_options(\%rrrep2,\%rfsol1,$CMP_IID));
#-------------------------------------------------------------------
vLogHTML("Relay-Reply message with Reply message(w/ Interface-id Option) is correct
");
#-------------------------------------------------------------------
vClear($IF0);
vStop($IF0);
dhcpExitPass();
#NOTREACHED
########################################################################
__END__
=head1 NAME
S_RFC3736_Creation-Transmission_Reply_RR_IID.seq - Relay-Reply message with Reply message(w/ Interface-id Option)
=head1 TARGET
Server
=head1 SYNOPSIS
=begin html
S_RFC3736_Creation-Transmission_Reply_RR_IID.seq [-tooloption ...]
-pkt S_RFC3736_Creation-Transmission_Reply_RR_IID.def
-tooloption: v6eval tool option
See Also DHCPv6.def
=head1 INITIALIZATION
=begin html
TN(Client1)
|
Link0 ---------------------+-------------- 3ffe:501:ffff:100::/64
|
TN(Relay1)
|
Link1 ---------------------+---------+--- 3ffe:501:ffff:101::/64
|
NUT(Server1)
Destination address set to TN's unicast address same as the Information-request message's source adderess
Relay-reply Message Format
msg-type
RELAY-REPL(13)
hop-count
Copied from the Relay-forward message
link-address
Copied from the Relay-forward message
peer-address
Copied from the Relay-forward message
options
Relay Message option
Interface-id option (Same as the RELAY-FORW Message)
- Configuration
| Device Name |
Device Type |
I/F |
Assigned Prefix |
Link Local Addr |
MAC Addr |
| Server1 |
NUT |
Link1 |
3ffe:501:ffff:101::/64 |
NUT's Linklocal address |
NUT's MAC address |
| Relay1(Link1) |
TN |
Link1 |
3ffe:501:ffff:101::/64 |
fe80::200:ff:fe00:a2a2 |
00:00:00:00:a2:a2 |
| Relay1(Link0) |
TN |
Link0 |
3ffe:501:ffff:100::/64 |
fe80::200:ff:fe00:a3a3 |
00:00:00:00:a3:a3 |
| Client1 |
TN |
Link0 |
3ffe:501:ffff:100::/64 |
fe80::200:ff:fe00:a4a4 |
00:00:00:00:a4:a4 |
=end html
=head1 TEST PROCEDURE
=begin html
NUT TN(Relay1) TN(Client1)
| | |
| | | initialize NUT (as a stateless DHCPv6 Server)
| | <---- | Information-request
| <---- | | Relay-forward (Information-request)
| ----> | | Relay-reply (Reply) (*1)
| | |
=end html
=head1 JUDGEMENT
(*1)PASS: The server returns the relay-reply message that is same as the description of verification points..
=head1 TERMINATION
N/A
=head1 REFERENCE
=begin html
See also RFC3315
17.2.3 and 18.2
See also RFC3646
3 and 4
see also RFC3736
5.1. 5.2 adn 5.3
=end html
=head1 SEE ALSO
perldoc V6evalTool
=cut