diff options
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r-- | net/dccp/options.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c index 68d6614edcf1..fc363aaeedaf 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c | |||
@@ -58,7 +58,7 @@ static u32 dccp_decode_value_var(const unsigned char *bf, const u8 len) | |||
58 | int dccp_parse_options(struct sock *sk, struct sk_buff *skb) | 58 | int dccp_parse_options(struct sock *sk, struct sk_buff *skb) |
59 | { | 59 | { |
60 | struct dccp_sock *dp = dccp_sk(sk); | 60 | struct dccp_sock *dp = dccp_sk(sk); |
61 | #ifdef DCCP_DEBUG | 61 | #ifdef CONFIG_IP_DCCP_DEBUG |
62 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? | 62 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? |
63 | "CLIENT rx opt: " : "server rx opt: "; | 63 | "CLIENT rx opt: " : "server rx opt: "; |
64 | #endif | 64 | #endif |
@@ -303,7 +303,7 @@ void dccp_insert_option_elapsed_time(struct sock *sk, | |||
303 | struct sk_buff *skb, | 303 | struct sk_buff *skb, |
304 | u32 elapsed_time) | 304 | u32 elapsed_time) |
305 | { | 305 | { |
306 | #ifdef DCCP_DEBUG | 306 | #ifdef CONFIG_IP_DCCP_DEBUG |
307 | struct dccp_sock *dp = dccp_sk(sk); | 307 | struct dccp_sock *dp = dccp_sk(sk); |
308 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? | 308 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? |
309 | "CLIENT TX opt: " : "server TX opt: "; | 309 | "CLIENT TX opt: " : "server TX opt: "; |
@@ -341,7 +341,7 @@ EXPORT_SYMBOL(dccp_insert_option_elapsed_time); | |||
341 | static void dccp_insert_option_ack_vector(struct sock *sk, struct sk_buff *skb) | 341 | static void dccp_insert_option_ack_vector(struct sock *sk, struct sk_buff *skb) |
342 | { | 342 | { |
343 | struct dccp_sock *dp = dccp_sk(sk); | 343 | struct dccp_sock *dp = dccp_sk(sk); |
344 | #ifdef DCCP_DEBUG | 344 | #ifdef CONFIG_IP_DCCP_DEBUG |
345 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? | 345 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? |
346 | "CLIENT TX opt: " : "server TX opt: "; | 346 | "CLIENT TX opt: " : "server TX opt: "; |
347 | #endif | 347 | #endif |
@@ -425,7 +425,7 @@ static void dccp_insert_option_timestamp_echo(struct sock *sk, | |||
425 | struct sk_buff *skb) | 425 | struct sk_buff *skb) |
426 | { | 426 | { |
427 | struct dccp_sock *dp = dccp_sk(sk); | 427 | struct dccp_sock *dp = dccp_sk(sk); |
428 | #ifdef DCCP_DEBUG | 428 | #ifdef CONFIG_IP_DCCP_DEBUG |
429 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? | 429 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? |
430 | "CLIENT TX opt: " : "server TX opt: "; | 430 | "CLIENT TX opt: " : "server TX opt: "; |
431 | #endif | 431 | #endif |
@@ -504,7 +504,7 @@ struct dccp_ackpkts *dccp_ackpkts_alloc(unsigned int len, int priority) | |||
504 | struct dccp_ackpkts *ap = kmalloc(sizeof(*ap) + len, priority); | 504 | struct dccp_ackpkts *ap = kmalloc(sizeof(*ap) + len, priority); |
505 | 505 | ||
506 | if (ap != NULL) { | 506 | if (ap != NULL) { |
507 | #ifdef DCCP_DEBUG | 507 | #ifdef CONFIG_IP_DCCP_DEBUG |
508 | memset(ap->dccpap_buf, 0xFF, len); | 508 | memset(ap->dccpap_buf, 0xFF, len); |
509 | #endif | 509 | #endif |
510 | ap->dccpap_buf_len = len; | 510 | ap->dccpap_buf_len = len; |
@@ -526,7 +526,7 @@ struct dccp_ackpkts *dccp_ackpkts_alloc(unsigned int len, int priority) | |||
526 | void dccp_ackpkts_free(struct dccp_ackpkts *ap) | 526 | void dccp_ackpkts_free(struct dccp_ackpkts *ap) |
527 | { | 527 | { |
528 | if (ap != NULL) { | 528 | if (ap != NULL) { |
529 | #ifdef DCCP_DEBUG | 529 | #ifdef CONFIG_IP_DCCP_DEBUG |
530 | memset(ap, 0xFF, sizeof(*ap) + ap->dccpap_buf_len); | 530 | memset(ap, 0xFF, sizeof(*ap) + ap->dccpap_buf_len); |
531 | #endif | 531 | #endif |
532 | kfree(ap); | 532 | kfree(ap); |
@@ -680,7 +680,7 @@ out_duplicate: | |||
680 | return -EILSEQ; | 680 | return -EILSEQ; |
681 | } | 681 | } |
682 | 682 | ||
683 | #ifdef DCCP_DEBUG | 683 | #ifdef CONFIG_IP_DCCP_DEBUG |
684 | void dccp_ackvector_print(const u64 ackno, const unsigned char *vector, | 684 | void dccp_ackvector_print(const u64 ackno, const unsigned char *vector, |
685 | int len) | 685 | int len) |
686 | { | 686 | { |
@@ -735,7 +735,7 @@ void dccp_ackpkts_check_rcv_ackno(struct dccp_ackpkts *ap, struct sock *sk, | |||
735 | return; | 735 | return; |
736 | 736 | ||
737 | if (ackno == ap->dccpap_ack_seqno) { | 737 | if (ackno == ap->dccpap_ack_seqno) { |
738 | #ifdef DCCP_DEBUG | 738 | #ifdef CONFIG_IP_DCCP_DEBUG |
739 | struct dccp_sock *dp = dccp_sk(sk); | 739 | struct dccp_sock *dp = dccp_sk(sk); |
740 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? | 740 | const char *debug_prefix = dp->dccps_role == DCCP_ROLE_CLIENT ? |
741 | "CLIENT rx ack: " : "server rx ack: "; | 741 | "CLIENT rx ack: " : "server rx ack: "; |
@@ -794,7 +794,7 @@ static void dccp_ackpkts_check_rcv_ackvector(struct dccp_ackpkts *ap, | |||
794 | /* dccp_pr_debug_cat("yes\n"); */ | 794 | /* dccp_pr_debug_cat("yes\n"); */ |
795 | 795 | ||
796 | if (state != DCCP_ACKPKTS_STATE_NOT_RECEIVED) { | 796 | if (state != DCCP_ACKPKTS_STATE_NOT_RECEIVED) { |
797 | #ifdef DCCP_DEBUG | 797 | #ifdef CONFIG_IP_DCCP_DEBUG |
798 | struct dccp_sock *dp = dccp_sk(sk); | 798 | struct dccp_sock *dp = dccp_sk(sk); |
799 | const char *debug_prefix = | 799 | const char *debug_prefix = |
800 | dp->dccps_role == DCCP_ROLE_CLIENT ? | 800 | dp->dccps_role == DCCP_ROLE_CLIENT ? |