From 8d7a4c48cac3708dc8bc88b7d6ede01b80268b4d Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Sat, 12 Apr 2014 18:33:32 +0200 Subject: [PATCH] put value in packet.len --- src/libmeshlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libmeshlink.c b/src/libmeshlink.c index e88b20c4..00eaa09c 100644 --- a/src/libmeshlink.c +++ b/src/libmeshlink.c @@ -575,6 +575,7 @@ bool tinc_send_packet(node_t *receiver, const char* buf, unsigned int len) { memcpy(hdr->source,myself->name,sizeof(hdr->source)); packet.priority = 0; + packet.len = sizeof(tincpackethdr) + len; memcpy(packet.data,hdr,32); memcpy(packet.data+32,buf,len); -- 2.39.5