summaryrefslogtreecommitdiff
path: root/ctdb/tcp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-26 16:35:41 +1000
committerAndrew Tridgell <tridge@samba.org>2007-05-26 16:35:41 +1000
commit47b20f7e265a836b48b141bbef8d25413fd215b6 (patch)
tree2731c94bf3a543ba863460f0fa8dda0c842fd3dc /ctdb/tcp
parent9aa692669bc0dc0b7282b294e85230159917bae0 (diff)
downloadsamba-47b20f7e265a836b48b141bbef8d25413fd215b6.tar.gz
show op type of badly aligned packets in tcp layer
(This used to be ctdb commit 6a3e1faa2ce77ee021154d66aeaa99c51bbc8b06)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r--ctdb/tcp/tcp_io.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ctdb/tcp/tcp_io.c b/ctdb/tcp/tcp_io.c
index e90770ec73c..c5e3340b530 100644
--- a/ctdb/tcp/tcp_io.c
+++ b/ctdb/tcp/tcp_io.c
@@ -85,5 +85,12 @@ int ctdb_tcp_queue_pkt(struct ctdb_node *node, uint8_t *data, uint32_t length)
{
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);
}