------------------------------------------------------------
revno: 352
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: tridge
timestamp: Sat 2007-05-26 16:35:41 +1000
message:
  show op type of badly aligned packets in tcp layer
modified:
  tcp/tcp_io.c                   tcp_io.c-20061128004937-x70q1cu5xzg5g2tm-3
=== modified file 'tcp/tcp_io.c'
--- a/tcp/tcp_io.c      2007-05-26 06:32:32 +0000
+++ b/tcp/tcp_io.c      2007-05-26 06:35:41 +0000
@@ -85,5 +85,12 @@
 {
        struct ctdb_tcp_node *tnode = talloc_get_type(node->private_data,
                                                      struct ctdb_tcp_node);
+       struct ctdb_req_header *hdr = (struct ctdb_req_header *)data;
+
+       if (length & (CTDB_TCP_ALIGNMENT-1)) {
+               DEBUG(0,(__location__ " Length 0x%x not multiple of alignment 
op %d\n", 
+                        length, hdr->operation));
+       }
+
        return ctdb_queue_send(tnode->queue, data, length);
 }

Reply via email to