1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

show op type of badly aligned packets in tcp layer

(This used to be ctdb commit 6a3e1faa2ce77ee021154d66aeaa99c51bbc8b06)
This commit is contained in:
Andrew Tridgell 2007-05-26 16:35:41 +10:00
parent 9aa692669b
commit 47b20f7e26

View File

@ -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);
}