NAME

        P_Problem_Link-Local.seq - check Parameter Problem (link-local address)


TARGET

        Host/Router


INITIALIZATION

        When test starts, states of Neighbor Cache Entry for TN's 
        addresses are reachable.


TEST PROCEDURE

        This test verifies that NUT send valid ICMPv6 Parameter Problem (code 1)
        in response to a packet include unknown next header field value.
        And this test verifies that the message processing rule ,
        
        If the message is a response to a message sent to one of the
        node's unicast addresses, the Source Address of the reply must
        be that same address.

        TN                      NUT

        ---------------------------

        1.
         === IPv6 packet  ===>
                src address : TN link local address
                dst address : NUT link local address
                        next header  is not used in NUT
        2.
        << JUDGMENT >>

         <=== ICMPv6 Prameter Problem ===
                src address : NUT link local address
                dst address : TN link local address
                        Code is 1
                        Pointer is 40


JUDGMENT

        << PASS >>
                NUT send ICMPv6 ICMPv6 Parameter Problem.
                

        << FAIL >>      
                NUT do not send ICMPv6 Parameter Problem.


REFERENCE

RFC2463 3.4 Parameter Problem Message

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     Type      |     Code      |          Checksum             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                            Pointer                            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    As much of invoking packet                 |
      +               as will fit without the ICMPv6 packet           +
      |               exceeding the minimum IPv6 MTU [IPv6]           |

   IPv6 Fields:
   Destination Address
Copied from the Source Address field of the invoking packet.

   ICMPv6 Fields:
   Type           4
   Code           0 - erroneous header field encountered
1 - unrecognized Next Header type encountered
2 - unrecognized IPv6 option encountered
   Pointer        Identifies the octet offset within the
                  invoking packet where the error was detected.
The pointer will point beyond the end of the ICMPv6 packet if the field in error is beyond what can fit in the maximum size of an ICMPv6 error message.

   Description
   If an IPv6 node processing a packet finds a problem with a field in
   the IPv6 header or extension headers such that it cannot complete
   processing the packet, it MUST discard the packet and SHOULD send an
   ICMPv6 Parameter Problem message to the packet's source, indicating
   the type and location of the problem.
   The pointer identifies the octet of the original packet's header
   where the error was detected. For example, an ICMPv6 message with
   Type field = 4, Code field = 1, and Pointer field = 40 would indicate
   that the IPv6 extension header following the IPv6 header of the
   original packet holds an unrecognized Next Header field value.


SEE ALSO

          perldoc V6evalTool