sctp: fix report unrecognized parameter in ACSONF-ACK
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 7 Apr 2009 07:44:29 +0000 (15:44 +0800)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 3 Jun 2009 13:14:45 +0000 (09:14 -0400)
commita987f762cafb25c0fedf88f15e328edd897210ed
tree0657be9f57f4d4ab647556d84039385b714de5e9
parenta84db7949eab7a42e715192f62c55c554e195e54
sctp: fix report unrecognized parameter in ACSONF-ACK

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: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_make_chunk.c