diff options
author | Christoph Lipka <clipka@jp.adit-jv.com> | 2016-01-18 10:28:46 +0900 |
---|---|---|
committer | Gernot Wirschal <gernot.wirschal@bmw.de> | 2016-04-25 15:26:37 +0200 |
commit | c75c984cfb1c6d154b14ebfca64c8222c4013c6b (patch) | |
tree | 71b88528075df9c8ee298035b18a9ba632e26afb /src/gateway | |
parent | bc09757d465d4ee5728157dce4fed0f71841daa7 (diff) | |
download | DLT-daemon-c75c984cfb1c6d154b14ebfca64c8222c4013c6b.tar.gz |
MultiNode: Send serialheader if specified in dlt.conf
Signed-off-by: Christoph Lipka <clipka@jp.adit-jv.com>
Change-Id: Iffbfb4693b172065d6000ecbf23342498341fa73
Diffstat (limited to 'src/gateway')
-rw-r--r-- | src/gateway/dlt_gateway.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c index 27626ee..96db80f 100644 --- a/src/gateway/dlt_gateway.c +++ b/src/gateway/dlt_gateway.c @@ -948,6 +948,20 @@ int dlt_gateway_forward_control_message(DltGateway *gateway, return -1; } + if (daemon_local->flags.lflag) /* send serial header */ + { + ret = send(con->client.sock, + (void *)dltSerialHeader, + sizeof(dltSerialHeader), + 0); + + if (ret == -1) + { + dlt_log(LOG_ERR, "Sending message to passive DLT Daemon failed\n"); + return -1; + } + } + ret = send(con->client.sock, msg->headerbuffer + sizeof(DltStorageHeader), msg->headersize - sizeof(DltStorageHeader), |