]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: Implement both feature-local and feature-remote Sequence Window feature
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Fri, 16 Jan 2009 23:36:31 +0000 (23:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Jan 2009 22:34:04 +0000 (14:34 -0800)
commitbaa2ec6e1c5f0f7a4a70e1952062a9b455872841
tree6949d6058f4d84f171a339e580ca906d30d67fad
parentca2663db304c0dbd7b30d5aa941bc0cbb83287a6
dccp: Implement both feature-local and feature-remote Sequence Window feature

This adds full support for local/remote Sequence Window feature, from which the
  * sequence-number-validity (W) and
  * acknowledgment-number-validity (W') windows
derive as specified in RFC 4340, 7.5.3.

Specifically, the following is contained in this patch:
  * integrated new socket fields into dccp_sk;
  * updated the update_gsr/gss routines with regard to these fields;
  * updated handler code: the Sequence Window feature is located at the TX side,
    so the local feature is meant if the handler-rx flag is false;
  * the initialisation of `rcv_wnd' in reqsk is removed, since
    - rcv_wnd is not used by the code anywhere;
    - sequence number checks are not done in the LISTEN state (cf. 7.5.3);
    - dccp_check_req checks the Ack number validity more rigorously;
  * the `struct dccp_minisock' became empty and is now removed.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/dccp.txt
include/linux/dccp.h
net/dccp/dccp.h
net/dccp/feat.c
net/dccp/minisocks.c
net/dccp/proto.c