diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2006-03-20 22:23:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 22:23:58 -0500 |
commit | 93ce20928f6e197707add8f670ae0cd029107e8f (patch) | |
tree | d7a3219c9a81d103c72267b568e7ea90dd673f42 /include/linux/dccp.h | |
parent | 60fe62e789076ae7c13f7ffb35fec4b24802530d (diff) |
[DCCP]: Make CCID2 be the default
As per the draft. This fixes the build when netfilter dccp components
are built and dccp isn't. Thanks to Reuben Farrelly for reporting
this.
The following changesets will introduce /proc/sys/net/dccp/defaults/
to give more flexibility to DCCP developers and testers while apps
doesn't use setsockopt to specify the desired CCID, etc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r-- | include/linux/dccp.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h index 496dbad8e896..e35f680f909b 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h | |||
@@ -320,17 +320,8 @@ static inline unsigned int dccp_hdr_len(const struct sk_buff *skb) | |||
320 | /* initial values for each feature */ | 320 | /* initial values for each feature */ |
321 | #define DCCPF_INITIAL_SEQUENCE_WINDOW 100 | 321 | #define DCCPF_INITIAL_SEQUENCE_WINDOW 100 |
322 | #define DCCPF_INITIAL_ACK_RATIO 2 | 322 | #define DCCPF_INITIAL_ACK_RATIO 2 |
323 | |||
324 | #if defined(CONFIG_IP_DCCP_CCID2) || defined(CONFIG_IP_DCCP_CCID2_MODULE) | ||
325 | #define DCCPF_INITIAL_CCID 2 | 323 | #define DCCPF_INITIAL_CCID 2 |
326 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 1 | 324 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 1 |
327 | #elif defined(CONFIG_IP_DCCP_CCID3) || defined(CONFIG_IP_DCCP_CCID3_MODULE) | ||
328 | #define DCCPF_INITIAL_CCID 3 | ||
329 | #define DCCPF_INITIAL_SEND_ACK_VECTOR 0 | ||
330 | #else | ||
331 | #error "At least one CCID must be built as the default" | ||
332 | #endif | ||
333 | |||
334 | /* FIXME: for now we're default to 1 but it should really be 0 */ | 325 | /* FIXME: for now we're default to 1 but it should really be 0 */ |
335 | #define DCCPF_INITIAL_SEND_NDP_COUNT 1 | 326 | #define DCCPF_INITIAL_SEND_NDP_COUNT 1 |
336 | 327 | ||