• Wei Yongjun's avatar
    sctp: fix report unrecognized parameter in ACSONF-ACK · a987f762
    Wei Yongjun authored
    RFC5061 Section 5.2.  Upon Reception of an ASCONF Chunk
    
    V2)  In processing the chunk, the receiver should build a
         response message with the appropriate error TLVs, as
         specified in the Parameter type bits, for any ASCONF
         Parameter it does not understand.  To indicate an
         unrecognized parameter, Cause Type 8 should be used as
         defined in the ERROR in Section 3.3.10.8, [RFC4960].  The
         endpoint may also use the response to carry rejections for
         other reasons, such as resource shortages, etc., using the
         Error Cause TLV and an appropriate error condition.
    
    So we should indicate an unrecognized parameter with error
    SCTP_ERROR_UNKNOWN_PARAM in ACSONF-ACK chunk, not
    SCTP_ERROR_INV_PARAM.
    Signed-off-by: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
    Signed-off-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
    a987f762
sm_make_chunk.c 97.2 KB