Rev 352: show op type of badly aligned packets in tcp layer in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Sat May 26 06:35:41 GMT 2007


------------------------------------------------------------
revno: 352
revision-id: tridge at samba.org-20070526063541-ejidxmkfrpxmu0hz
parent: tridge at samba.org-20070526063232-f11jm7mw39jlmq8o
committer: Andrew Tridgell <tridge at samba.org>
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);
 }



More information about the samba-cvs mailing list