summaryrefslogtreecommitdiff
path: root/code/core/fe310
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2018-01-11 21:23:54 +0100
committerUros Majstorovic <majstor@majstor.org>2018-01-11 21:23:54 +0100
commit05e11f491b84a110b9ca08612df370b91e9bdcbc (patch)
tree6fa377bbf725af0398a709d4d9a75a382ab5e692 /code/core/fe310
parent0b6d7b1baf2baf1f36a3a92865730c2d78fc12be (diff)
fixed fe310 transport
Diffstat (limited to 'code/core/fe310')
-rw-r--r--code/core/fe310/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/code/core/fe310/transport.c b/code/core/fe310/transport.c
index 7afdbf7..b833ee3 100644
--- a/code/core/fe310/transport.c
+++ b/code/core/fe310/transport.c
@@ -27,6 +27,8 @@ static ssize_t t_send(int *sock, void *msg, size_t msg_size, ECPNetAddr *addr) {
int rv;
buf -= addr_len;
+ memcpy(buf, addr->host, sizeof(addr->host));
+ memcpy(buf+sizeof(addr->host), &addr->port, sizeof(addr->port));
rv = eos_net_send(EOS_NET_CMD_PKT, buf, buf_size);
if (rv) return ECP_ERR_SEND;
return msg_size;