diff options
Diffstat (limited to 'net/dccp/options.c')
-rw-r--r-- | net/dccp/options.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net/dccp/options.c b/net/dccp/options.c index 7e50678e2471..ee709ae0a97f 100644 --- a/net/dccp/options.c +++ b/net/dccp/options.c | |||
@@ -238,9 +238,8 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb) | |||
238 | } | 238 | } |
239 | break; | 239 | break; |
240 | default: | 240 | default: |
241 | pr_info("DCCP(%p): option %d(len=%d) not " | 241 | DCCP_CRIT("DCCP(%p): option %d(len=%d) not " |
242 | "implemented, ignoring\n", | 242 | "implemented, ignoring", sk, opt, len); |
243 | sk, opt, len); | ||
244 | break; | 243 | break; |
245 | } | 244 | } |
246 | 245 | ||
@@ -257,7 +256,7 @@ int dccp_parse_options(struct sock *sk, struct sk_buff *skb) | |||
257 | out_invalid_option: | 256 | out_invalid_option: |
258 | DCCP_INC_STATS_BH(DCCP_MIB_INVALIDOPT); | 257 | DCCP_INC_STATS_BH(DCCP_MIB_INVALIDOPT); |
259 | DCCP_SKB_CB(skb)->dccpd_reset_code = DCCP_RESET_CODE_OPTION_ERROR; | 258 | DCCP_SKB_CB(skb)->dccpd_reset_code = DCCP_RESET_CODE_OPTION_ERROR; |
260 | pr_info("DCCP(%p): invalid option %d, len=%d\n", sk, opt, len); | 259 | DCCP_WARN("DCCP(%p): invalid option %d, len=%d", sk, opt, len); |
261 | return -1; | 260 | return -1; |
262 | } | 261 | } |
263 | 262 | ||
@@ -447,8 +446,7 @@ static int dccp_insert_feat_opt(struct sk_buff *skb, u8 type, u8 feat, | |||
447 | u8 *to; | 446 | u8 *to; |
448 | 447 | ||
449 | if (DCCP_SKB_CB(skb)->dccpd_opt_len + len + 3 > DCCP_MAX_OPT_LEN) { | 448 | if (DCCP_SKB_CB(skb)->dccpd_opt_len + len + 3 > DCCP_MAX_OPT_LEN) { |
450 | LIMIT_NETDEBUG(KERN_INFO "DCCP: packet too small" | 449 | DCCP_WARN("packet too small for feature %d option!\n", feat); |
451 | " to insert feature %d option!\n", feat); | ||
452 | return -1; | 450 | return -1; |
453 | } | 451 | } |
454 | 452 | ||