Lines Matching refs:tmp_adu
159 static struct modbus_adu tmp_adu; variable
168 tmp_adu.trans_id = adu->trans_id; in server_raw_cb()
169 tmp_adu.proto_id = adu->proto_id; in server_raw_cb()
170 tmp_adu.length = adu->length; in server_raw_cb()
171 tmp_adu.unit_id = adu->unit_id; in server_raw_cb()
172 tmp_adu.fc = adu->fc; in server_raw_cb()
173 memcpy(tmp_adu.data, adu->data, in server_raw_cb()
176 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "resp"); in server_raw_cb()
242 modbus_raw_get_header(&tmp_adu, header); in modbus_tcp_connection()
243 data_len = tmp_adu.length; in modbus_tcp_connection()
245 rc = recv(client, tmp_adu.data, data_len, MSG_WAITALL); in modbus_tcp_connection()
250 LOG_HEXDUMP_DBG(tmp_adu.data, tmp_adu.length, "d:>"); in modbus_tcp_connection()
251 if (modbus_raw_submit_rx(server_iface, &tmp_adu)) { in modbus_tcp_connection()
258 modbus_raw_set_server_failure(&tmp_adu); in modbus_tcp_connection()
261 return modbus_tcp_reply(client, &tmp_adu); in modbus_tcp_connection()