[DCCP] options: Fix some aspects of mandatory option processing
authorArnaldo Carvalho de Melo <acme@mandriva.com>
Tue, 21 Mar 2006 06:06:02 +0000 (22:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:06:02 +0000 (22:06 -0800)
commit6df9424a9ca35f9fab773d1a0a8919781a367125
tree3c577a45046f9daeb574a76df704f88f76175faf
parentc0c736db7ef4a7bdc1a28f3de751cc7e9f720313
[DCCP] options: Fix some aspects of mandatory option processing

According to dccp draft (draft-ietf-dccp-spec-13.txt) section 5.8.2
(Mandatory Option) the following patch correct the handling of the
following cases:

1) "... and any Mandatory options received on DCCP-Data packets MUST be
  ignored."

2) "The connection is in error and should be reset with Reset Code 5, ...
  if option O is absent (Mandatory was the last byte of the option list), or
  if option O equals Mandatory."

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/options.c