diff options
author | Frederic Berat <fberat@de.adit-jv.com> | 2016-03-21 15:40:53 +0900 |
---|---|---|
committer | Gernot Wirschal <gernot.wirschal@bmw.de> | 2016-04-27 09:23:56 +0200 |
commit | e1bdf1e7f1d2ac87a594abf8622f536d3ff4b0b9 (patch) | |
tree | ae58da225312880bab547191febf82691c20fea8 /src/gateway | |
parent | cc4517dcffc6e5fd66791fca486586ae9b948174 (diff) | |
download | DLT-daemon-e1bdf1e7f1d2ac87a594abf8622f536d3ff4b0b9.tar.gz |
MultiNode: Add support for port configuration
Signed-off-by:Frederic Berat <fberat@de.adit-jv.com>
Change-Id: I9b387d5713f5ae7b6fcfadb22d804fdb97534e44
Diffstat (limited to 'src/gateway')
-rw-r--r-- | src/gateway/dlt_gateway.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c index 92faefc..bf02b94 100644 --- a/src/gateway/dlt_gateway.c +++ b/src/gateway/dlt_gateway.c @@ -480,7 +480,9 @@ int dlt_gateway_store_connection(DltGateway *gateway, tmp->control_msgs, sizeof(tmp->control_msgs)); - if (dlt_client_init(&gateway->connections[i].client, verbose) != 0) + if (dlt_client_init_port(&gateway->connections[i].client, + gateway->connections[i].port, + verbose) != 0) { free(gateway->connections[i].ip_address); free(gateway->connections[i].ecuid); @@ -855,6 +857,15 @@ int dlt_gateway_process_passive_node_messages(DltDaemon *daemon, /* only forward messages if the received ECUid is the expected one */ if (strncmp(header->ecu, con->ecuid, strlen(con->ecuid)) == 0) { + snprintf(local_str, + DLT_DAEMON_TEXTBUFSIZE, + "Received ECUid (%s) similar to configured ECUid(%s). " + "Forwarding message (%s).\n", + header->ecu, + con->ecuid, + msg.databuffer); + dlt_log(LOG_DEBUG, local_str); + if (dlt_daemon_client_send(DLT_DAEMON_SEND_TO_ALL, daemon, daemon_local, |