git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1277089
)
show op type of badly aligned packets in tcp layer
author
Andrew Tridgell
<tridge@samba.org>
Sat, 26 May 2007 06:35:41 +0000
(16:35 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 26 May 2007 06:35:41 +0000
(16:35 +1000)
tcp/tcp_io.c
patch
|
blob
|
history
diff --git
a/tcp/tcp_io.c
b/tcp/tcp_io.c
index e90770ec73cfd80672e2c307daa9567e6868832e..c5e3340b530231d72000a400e92ddf37d2890db6 100644
(file)
--- a/
tcp/tcp_io.c
+++ b/
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);
}