return false;
}
+ memset(hdr->legacymtu,0,sizeof(hdr->legacymtu));
memcpy(hdr->destination,receiver->name,sizeof(hdr->destination));
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);
+ memcpy(packet.data,hdr,32+14);
+ memcpy(packet.data+32+14,buf,len);
myself->in_packets++;
myself->in_bytes += packet.len;
bool tinc_stop();
typedef struct tincpackethdr {
+ u_int8_t legacymtu[14];
u_int8_t destination[16];
u_int8_t source[16];
} __attribute__ ((__packed__)) tincpackethdr;