summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@mandriva.com>2005-08-21 05:35:18 -0300
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 16:03:33 -0700
commita3054d48b9b9d6290eccc9fc09c286ef450d9b1d (patch)
tree08a6b91f57e6c7c66a4839ba4fb3c0bf570cebf6 /net
parent2807d4ffb0dccb8f932c3e1701b6b6163153d333 (diff)
downloadop-kernel-dev-a3054d48b9b9d6290eccc9fc09c286ef450d9b1d.zip
op-kernel-dev-a3054d48b9b9d6290eccc9fc09c286ef450d9b1d.tar.gz
[DCCP]: Give more info on Step 6 failure debug printk
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/dccp/input.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/dccp/input.c b/net/dccp/input.c
index 3c4cbff..ce8396b 100644
--- a/net/dccp/input.c
+++ b/net/dccp/input.c
@@ -136,8 +136,15 @@ static int dccp_check_seqno(struct sock *sk, struct sk_buff *skb)
DCCP_PKT_WITHOUT_ACK_SEQ))
dp->dccps_gar = DCCP_SKB_CB(skb)->dccpd_ack_seq;
} else {
- LIMIT_NETDEBUG(KERN_WARNING "DCCP: Step 6 failed, "
- "sending SYNC...\n");
+ LIMIT_NETDEBUG(KERN_WARNING "DCCP: Step 6 failed for %s packet, "
+ "(LSWL(%llu) <= P.seqno(%llu) <= S.SWH(%llu)) and "
+ "(P.ackno %s or LAWL(%llu) <= P.ackno(%llu) <= S.AWH(%llu), "
+ "sending SYNC...\n",
+ dccp_packet_name(dh->dccph_type),
+ lswl, DCCP_SKB_CB(skb)->dccpd_seq, dp->dccps_swh,
+ (DCCP_SKB_CB(skb)->dccpd_ack_seq ==
+ DCCP_PKT_WITHOUT_ACK_SEQ) ? "doesn't exist" : "exists",
+ lawl, DCCP_SKB_CB(skb)->dccpd_ack_seq, dp->dccps_awh);
dccp_send_sync(sk, DCCP_SKB_CB(skb)->dccpd_seq, DCCP_PKT_SYNC);
return -1;
}
OpenPOWER on IntegriCloud