NAME

  ErrorInShutAckSend.seq - ERROR chunk is received in SHUTDOWN-ACK-SENT state


PURPOSE

  To check that if ERROR chunk is received in SHUTDOWN-ACK-SENT state then the
  endpoint should discarded the ERROR chunk.


SYNOPSIS

  ./ErrorInShutAckSend.seq [-tooloption ...] -pkt ./ErrorInShutAckSend.def
    -tooloption : v6eval tool option
  See Also: ../common/STD_PKT_COMMON.def
            ../common/SCTP_COMMON.def


PRE-TEST CONDITION

  Association is established between endpoint A and B. Arrange data in
  endpoint A such that ERROR chunk is sent to endpoint B when endpoint
  B is in SHUTDOWN-ACK-SENT state.


TEST PROCEDURE

  Endpoint A                           Endpoint B                ULP
  (ESTABLISHED)                        (ESTABLISHED)
  SHUTDOWN      ----------------->
                <-----------------      SHUTDOWN-ACK
  ERROR         ----------------->      Discarded
                <-----------------      SHUTDOWN-ACK
                                        (retransmit)
  TEST DESCRIPTION:
  1. Send ERROR message from endpoint A to B when endpoint B is in
     SHUTDOWN-ACK-SENT state. 
  2. Check A: ERROR message received in SHUTDOWN-ACK-SENT state is
     discarded.


NOTE

  None


REFERENCE

  RFC 4960
  3.3.10.  Operation Error (ERROR) (9)
    An endpoint sends this chunk to its peer endpoint to notify it of
    certain error conditions.  It contains one or more error causes.  An
    Operation Error is not considered fatal in and of itself, but may be
    used with an ABORT chunk to report a fatal condition.  It has the
    following parameters:
         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 = 9    | Chunk  Flags  |           Length              |
        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
        \                                                               \
        /                    one or more Error Causes                   /
        \                                                               \
        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Chunk Flags: 8 bits
      Set to 0 on transmit and ignored on receipt.
    Length: 16 bits (unsigned integer)
      Set to the size of the chunk in bytes, including the chunk header
      and all the Error Cause fields present.