diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2007-12-13 20:37:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:57:59 -0500 |
commit | 6179983ad30c43313e153b35af52bd9ebd7745c3 (patch) | |
tree | 1b1fcbad582d7aef0505910bdbfecaf833726357 /net/dccp/ccid.h | |
parent | 84a97b0af8c29aa5a47cc5271968a9c6004fb91e (diff) |
[DCCP]: Introducing CCMPS
This introduces a CCMPS field for setting a CCID-specific upper bound on the application payload
size, as is defined in RFC 4340, section 14.
Only the TX CCID is considered in setting this limit, since the RX CCID generates comparatively
small (DCCP-Ack) feedback packets. The CCMPS field includes network and transport layer header
lengths. The only current CCMPS customer is CCID4 (via RFC 4828).
A wrapper is used to allow querying the CCMPS even at times where the CCID modules may not have
been fully negotiated yet.
In dccp_sync_mss() the variable `mss_now' has been renamed into `cur_mps', to reflect that we are
dealing with an MPS, but not an MSS.
Since the DCCP code closely follows the TCP code, the identifiers `dccp_sync_mss' and
`dccps_mss_cache' have been kept, as they have direct TCP counterparts.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccid.h')
-rw-r--r-- | net/dccp/ccid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/ccid.h b/net/dccp/ccid.h index e3cdd8afc801..fdeae7b57319 100644 --- a/net/dccp/ccid.h +++ b/net/dccp/ccid.h | |||
@@ -27,6 +27,7 @@ struct tcp_info; | |||
27 | * struct ccid_operations - Interface to Congestion-Control Infrastructure | 27 | * struct ccid_operations - Interface to Congestion-Control Infrastructure |
28 | * | 28 | * |
29 | * @ccid_id: numerical CCID ID (up to %CCID_MAX, cf. table 5 in RFC 4340, 10.) | 29 | * @ccid_id: numerical CCID ID (up to %CCID_MAX, cf. table 5 in RFC 4340, 10.) |
30 | * @ccid_ccmps: the CCMPS including network/transport headers (0 when disabled) | ||
30 | * @ccid_name: alphabetical identifier string for @ccid_id | 31 | * @ccid_name: alphabetical identifier string for @ccid_id |
31 | * @ccid_owner: module which implements/owns this CCID | 32 | * @ccid_owner: module which implements/owns this CCID |
32 | * @ccid_hc_{r,t}x_slab: memory pool for the receiver/sender half-connection | 33 | * @ccid_hc_{r,t}x_slab: memory pool for the receiver/sender half-connection |
@@ -45,6 +46,7 @@ struct tcp_info; | |||
45 | */ | 46 | */ |
46 | struct ccid_operations { | 47 | struct ccid_operations { |
47 | unsigned char ccid_id; | 48 | unsigned char ccid_id; |
49 | __u32 ccid_ccmps; | ||
48 | const char *ccid_name; | 50 | const char *ccid_name; |
49 | struct module *ccid_owner; | 51 | struct module *ccid_owner; |
50 | struct kmem_cache *ccid_hc_rx_slab, | 52 | struct kmem_cache *ccid_hc_rx_slab, |