diff options
author | Ian McDonald <imcdnzl@gmail.com> | 2006-03-20 20:56:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 20:56:56 -0500 |
commit | ba66c6e8b292997467128506f39fa6607e959050 (patch) | |
tree | d9c467ac7017b21b793442376080107b155c2afd /include/linux/dccp.h | |
parent | dc808fe28db59fadf4ec32d53f62477fa28f3be8 (diff) |
[DCCP]: Set the default CCID according to kernel config selection
Now CCID2 is the default, as stated in the RFC drafts, but we allow
a config where just CCID3 is built, where CCID3 becomes the default.
Signed-off-by: Ian McDonald <imcdnzl@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r-- | include/linux/dccp.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h index f91c8a62406d..a70d1a27e7fc 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h | |||
@@ -329,9 +329,18 @@ static inline unsigned int dccp_hdr_len(const struct sk_buff *skb) | |||
329 | 329 | ||
330 | /* initial values for each feature */ | 330 | /* initial values for each feature */ |
331 | #define DCCPF_INITIAL_SEQUENCE_WINDOW 100 | 331 | #define DCCPF_INITIAL_SEQUENCE_WINDOW 100 |
332 | #define DCCPF_INITIAL_CCID 2 | ||
333 | #define DCCPF_INITIAL_ACK_RATIO 2 | 332 | #define DCCPF_INITIAL_ACK_RATIO 2 |
333 | |||
334 | #if defined(CONFIG_IP_DCCP_CCID2) || defined(CONFIG_IP_DCCP_CCID2_MODULE) | ||
335 | #define DCCPF_INITIAL_CCID 2 | ||
334 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 1 | 336 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 1 |
337 | #elif defined(CONFIG_IP_DCCP_CCID3) || defined(CONFIG_IP_DCCP_CCID3_MODULE) | ||
338 | #define DCCPF_INITIAL_CCID 3 | ||
339 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 0 | ||
340 | #else | ||
341 | #error "At least one CCID must be built as the default" | ||
342 | #endif | ||
343 | |||
335 | /* FIXME: for now we're default to 1 but it should really be 0 */ | 344 | /* FIXME: for now we're default to 1 but it should really be 0 */ |
336 | #define DCCPF_INITIAL_SEND_NDP_COUNT 1 | 345 | #define DCCPF_INITIAL_SEND_NDP_COUNT 1 |
337 | 346 | ||