linux-stable/include/net/sctp
Wei Yongjun 00f1c2df2a SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly
PROTOCOL VIOLATION error cause in ABORT is bad encode when make abort
chunk. When SCTP encode ABORT chunk with PROTOCOL VIOLATION error cause,
it just add the error messages to PROTOCOL VIOLATION error cause, the
rest four bytes(struct sctp_paramhdr) is just add to the chunk, not
change the length of error cause. This cause the ABORT chunk to be a bad
format. The chunk is like this:

ABORT chunk
  Chunk type: ABORT (6)
  Chunk flags: 0x00
  Chunk length: 72 (*1)
  Protocol violation cause
    Cause code: Protocol violation (0x000d)
    Cause length: 62 (*2)
    Cause information: 5468652063756D756C61746976652074736E2061636B2062...
    Cause padding: 0000
[Needless] 00030010
Chunk Length(*1) = 72 but Cause length(*2) only 62, not include the
extend 4 bytes.
((72 - sizeof(chunk_hdr)) = 68) != (62 +3) / 4 * 4

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
2007-08-30 13:50:48 -04:00
..
command.h [SCTP]: Set assoc_id correctly during INIT collision. 2007-05-04 13:55:27 -07:00
constants.h [SCTP]: Implement SCTP_MAX_BURST socket option. 2007-04-25 22:28:04 -07:00
sctp.h sctp: move global declaration to header file. 2007-08-01 11:19:06 -04:00
sm.h SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly 2007-08-30 13:50:48 -04:00
structs.h SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly 2007-08-30 13:50:48 -04:00
tsnmap.h [SCTP]: Annotate tsn_dups. 2006-12-02 21:26:22 -08:00
ulpevent.h [SCTP]: Implement sac_info field in SCTP_ASSOC_CHANGE notification. 2007-04-25 22:28:03 -07:00
ulpqueue.h SCTP: properly clean up fragment and ordering queues during FWD-TSN. 2007-08-29 13:34:33 -04:00
user.h [SCTP]: Implement SCTP_MAX_BURST socket option. 2007-04-25 22:28:04 -07:00