logger(mesh, MESHLINK_DEBUG, "Routing packet from \"%s\" to \"%s\"\n", hdr->source, hdr->destination);
//Check Lenght
- if(!checklength(source, packet, (sizeof(meshlink_packethdr_t))))
+ if(!checklength(source, packet, sizeof *hdr))
return;
if(owner == NULL) {