linux/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
..
associola.c [SCTP] Flag a pmtu change request 2007-06-13 20:44:42 +00:00
bind_addr.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
chunk.c Fix occurrences of "the the " 2007-05-09 08:57:56 +02:00
command.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crc32c.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
debug.c [NET]: Fix comparisons of unsigned < 0. 2007-06-03 18:08:47 -07:00
endpointola.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
input.c sctp: make locally used function static 2007-08-01 11:19:05 -04:00
inqueue.c [SK_BUFF]: Convert skb->tail to sk_buff_data_t 2007-04-25 22:26:28 -07:00
ipv6.c SCTP: IPv4 mapped addr not returned in SCTPv6 accept() 2007-08-01 11:19:06 -04:00
Kconfig [SCTP]: Use menuconfig objects. 2007-05-24 16:36:48 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
objcnt.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
output.c [NET]: cleanup extra semicolons 2007-04-25 22:29:24 -07:00
outqueue.c [NET]: cleanup extra semicolons 2007-04-25 22:29:24 -07:00
primitive.c [NET] SCTP: Fix whitespace errors. 2007-02-10 23:20:11 -08:00
proc.c [NET]: Make all initialized struct seq_operations const. 2007-07-10 23:07:31 -07:00
protocol.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
sm_make_chunk.c SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly 2007-08-30 13:50:48 -04:00
sm_sideeffect.c SCTP: properly clean up fragment and ordering queues during FWD-TSN. 2007-08-29 13:34:33 -04:00
sm_statefuns.c SCTP: Fix to encode PROTOCOL VIOLATION error cause correctly 2007-08-30 13:50:48 -04:00
sm_statetable.c [NET]: Fix comparisons of unsigned < 0. 2007-06-03 18:08:47 -07:00
socket.c SCTP: IPv4 mapped addr not returned in SCTPv6 accept() 2007-08-01 11:19:06 -04:00
ssnmap.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
sysctl.c [PATCH] sysctl: remove insert_at_head from register_sysctl 2007-02-14 08:09:59 -08:00
transport.c [SCTP] Don't disable PMTU discovery when mtu is small 2007-06-13 20:44:42 +00:00
tsnmap.c sctp: fix shadow symbol in net/sctp/tsnmap.c 2007-08-01 11:19:06 -04:00
ulpevent.c [SCTP]: Do not include ABORT chunk header in the notification. 2007-05-10 23:45:31 -07:00
ulpqueue.c SCTP: properly clean up fragment and ordering queues during FWD-TSN. 2007-08-29 13:34:33 -04:00