diff options
author | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2008-11-23 19:02:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-23 19:02:31 -0500 |
commit | b20a9c24d5c5d466d7e4a25c6f1bedbd2d16ad4f (patch) | |
tree | 17789215657f693caf36e22d3e724cc1b1e07ba6 /net/dccp/ackvec.h | |
parent | 2c62ad7b56fa8e2658253c0256ef4c4de228a0b9 (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.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ackvec.h')
-rw-r--r-- | net/dccp/ackvec.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dccp/ackvec.h b/net/dccp/ackvec.h index bcb64fb4acef..4ccee030524e 100644 --- a/net/dccp/ackvec.h +++ b/net/dccp/ackvec.h | |||
@@ -11,15 +11,14 @@ | |||
11 | * published by the Free Software Foundation. | 11 | * published by the Free Software Foundation. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/dccp.h> | ||
14 | #include <linux/compiler.h> | 15 | #include <linux/compiler.h> |
15 | #include <linux/ktime.h> | 16 | #include <linux/ktime.h> |
16 | #include <linux/list.h> | 17 | #include <linux/list.h> |
17 | #include <linux/types.h> | 18 | #include <linux/types.h> |
18 | 19 | ||
19 | /* Read about the ECN nonce to see why it is 253 */ | ||
20 | #define DCCP_MAX_ACKVEC_OPT_LEN 253 | ||
21 | /* We can spread an ack vector across multiple options */ | 20 | /* We can spread an ack vector across multiple options */ |
22 | #define DCCP_MAX_ACKVEC_LEN (DCCP_MAX_ACKVEC_OPT_LEN * 2) | 21 | #define DCCP_MAX_ACKVEC_LEN (DCCP_SINGLE_OPT_MAXLEN * 2) |
23 | 22 | ||
24 | #define DCCP_ACKVEC_STATE_RECEIVED 0 | 23 | #define DCCP_ACKVEC_STATE_RECEIVED 0 |
25 | #define DCCP_ACKVEC_STATE_ECN_MARKED (1 << 6) | 24 | #define DCCP_ACKVEC_STATE_ECN_MARKED (1 << 6) |