aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/minisocks.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2006-11-20 15:39:23 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:24:38 -0500
commit59348b19efebfd6a8d0791ff81d207b16594c94b (patch)
treea9212a7bf62bd594cf02d23b9e33eb45a46d414d /net/dccp/minisocks.c
parentb1308dc015eb09cf094ca169296738a13ae049ad (diff)
[DCCP]: Simplified conditions due to use of enum:8 states
This reaps the benefit of the earlier patch, which changed the type of CCID 3 states to use enums, in that many conditions are now simplified and the number of possible (unexpected) values is greatly reduced. In a few instances, this also allowed to simplify pre-conditions; where care has been taken to retain logical equivalence. [DCCP]: Introduce a consistent BUG/WARN message scheme This refines the existing set of DCCP messages so that * BUG(), BUG_ON(), WARN_ON() have meaningful DCCP-specific counterparts * DCCP_CRIT (for severe warnings) is not rate-limited * DCCP_WARN() is introduced as rate-limited wrapper Using these allows a faster and cleaner transition to their original counterparts once the code has matured into a full DCCP implementation. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/minisocks.c')
-rw-r--r--net/dccp/minisocks.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/dccp/minisocks.c b/net/dccp/minisocks.c
index 3975048d8094..7b52f2a03eef 100644
--- a/net/dccp/minisocks.c
+++ b/net/dccp/minisocks.c
@@ -84,8 +84,7 @@ void dccp_time_wait(struct sock *sk, int state, int timeo)
84 * socket up. We've got bigger problems than 84 * socket up. We've got bigger problems than
85 * non-graceful socket closings. 85 * non-graceful socket closings.
86 */ 86 */
87 LIMIT_NETDEBUG(KERN_INFO "DCCP: time wait bucket " 87 DCCP_WARN("time wait bucket table overflow\n");
88 "table overflow\n");
89 } 88 }
90 89
91 dccp_done(sk); 90 dccp_done(sk);
@@ -289,9 +288,7 @@ EXPORT_SYMBOL_GPL(dccp_child_process);
289 288
290void dccp_reqsk_send_ack(struct sk_buff *skb, struct request_sock *rsk) 289void dccp_reqsk_send_ack(struct sk_buff *skb, struct request_sock *rsk)
291{ 290{
292 pr_info(KERN_WARNING "DCCP: ACK packets are never sent in " 291 DCCP_BUG("DCCP-ACK packets are never sent in LISTEN/RESPOND state");
293 "LISTEN/RESPOND state\n");
294 dump_stack();
295} 292}
296 293
297EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack); 294EXPORT_SYMBOL_GPL(dccp_reqsk_send_ack);