All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shan Wei <shanwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [PATCH][RFC] sctp: fix reporting of unknown parameters
Date: Sun, 20 Feb 2011 03:07:37 +0000	[thread overview]
Message-ID: <4D608579.7000900@cn.fujitsu.com> (raw)
In-Reply-To: <20110217231208.GA28281@midget.suse.cz>


Hi vald:

Vladislav Yasevich wrote, at 02/18/2011 10:43 PM:
> Hi Jiri
> 
> I agree.  Good catch.  If we can not add the error header to that packet, then we definitely
> should not be adding the error payload either.

I also agree this part.
 
> We also don't want to abort as Shan Wei suggested.  It is allowed, when exceeding the MTU to
> drop errors that would not otherwise fit into the packet.  It just may so happen that we
> can report subsequent unknown parameters, but not this one in particular.

RFC said that about Parameter Types' encode:
3.2.1.  Optional/Variable-Length Parameter Format
      11 -  Skip this parameter and continue processing but report the
            unrecognized parameter in an 'Unrecognized Parameter', as
            described in Section 3.2.2.

and

3.2.2.  Reporting of Unrecognized Parameters

   If the receiver of an INIT chunk detects unrecognized parameters and
   *has to* report them according to Section 3.2.1, it MUST put the
   'Unrecognized Parameter' parameter(s) in the INIT ACK chunk sent in
   response to the INIT chunk.

So, For unrecognized parameter can't fit into the packet, so droping the parameter.
This may not be consistent with the RFC.

If i have missed something, please tell me. Thanks.

> 
> Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
> 
> -vlad
> 
> 
> 
> 


-- 

Best Regards
-----
Shan Wei

  parent reply	other threads:[~2011-02-20  3:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 23:12 [PATCH][RFC] sctp: fix reporting of unknown parameters Jiri Bohac
2011-02-17 23:12 ` Jiri Bohac
2011-02-18 11:26 ` Shan Wei
2011-02-18 11:26   ` Shan Wei
2011-02-18 12:01   ` Jiri Bohac
2011-02-18 12:01     ` Jiri Bohac
2011-02-18 14:43     ` Vladislav Yasevich
2011-02-18 14:43       ` Vladislav Yasevich
2011-02-20  3:07 ` Shan Wei [this message]
2011-02-20  3:08 ` David Miller
2011-02-22 13:36 ` Vladislav Yasevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D608579.7000900@cn.fujitsu.com \
    --to=shanwei@cn.fujitsu.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.