diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:30:19 -0400 |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-09-04 01:45:28 -0400 |
commit | fade756f18d42694e3acb00e3471ab43002cba16 (patch) | |
tree | f2ae912af9678315b672eb292ef17de42a97fbf3 /net/dccp/feat.h | |
parent | 73bbe095bbb9ce5f94d5475bad54c7ccd8573b1b (diff) |
dccp: Set per-connection CCIDs via socket options
With this patch, TX/RX CCIDs can now be changed on a per-connection basis, which
overrides the defaults set by the global sysctl variables for TX/RX CCIDs.
To make full use of this facility, the remaining patches of this patch set are
needed, which track dependencies and activate negotiated feature values.
Note on the maximum number of CCIDs that can be registered:
-----------------------------------------------------------
The maximum number of CCIDs that can be registered on the socket is constrained
by the space in a Confirm/Change feature negotiation option.
The space in these in turn depends on the size of header options as defined
in RFC 4340, 5.8. Since this is a recurring constant, it has been moved from
ackvec.h into linux/dccp.h, clarifying its purpose.
Relative to this size, the maximum number of CCID identifiers that can be
present in a Confirm option (which always consumes 1 byte more than a Change
option, cf. 6.1) is 2 bytes less than the maximum TLV size: one for the
CCID-feature-type and one for the selected value.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'net/dccp/feat.h')
-rw-r--r-- | net/dccp/feat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/dccp/feat.h b/net/dccp/feat.h index 2c92bd18e5f4..b53b11717c40 100644 --- a/net/dccp/feat.h +++ b/net/dccp/feat.h | |||
@@ -22,6 +22,8 @@ | |||
22 | /* Wmin=32 and Wmax=2^46-1 from 7.5.2 */ | 22 | /* Wmin=32 and Wmax=2^46-1 from 7.5.2 */ |
23 | #define DCCPF_SEQ_WMIN 32 | 23 | #define DCCPF_SEQ_WMIN 32 |
24 | #define DCCPF_SEQ_WMAX 0x3FFFFFFFFFFFull | 24 | #define DCCPF_SEQ_WMAX 0x3FFFFFFFFFFFull |
25 | /* Maximum number of SP values that fit in a single (Confirm) option */ | ||
26 | #define DCCP_FEAT_MAX_SP_VALS (DCCP_SINGLE_OPT_MAXLEN - 2) | ||
25 | 27 | ||
26 | enum dccp_feat_type { | 28 | enum dccp_feat_type { |
27 | FEAT_AT_RX = 1, /* located at RX side of half-connection */ | 29 | FEAT_AT_RX = 1, /* located at RX side of half-connection */ |