]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Do not consider footer when calculating whether a payload size is valid.
authorscipio <scipio>
Sat, 27 Oct 2007 00:09:23 +0000 (00:09 +0000)
committerscipio <scipio>
Sat, 27 Oct 2007 00:09:23 +0000 (00:09 +0000)
tos/lib/net/le/LinkEstimatorP.nc

index 43b75f7066947ed05dfeeee9d785b0704cdee317..c18e9f19b416c5c3d893cd812424a38e587d77f8 100644 (file)
@@ -721,8 +721,7 @@ implementation {
   // application payload pointer is just past the link estimation header
   command void* Packet.getPayload(message_t* msg, uint8_t len) {
     linkest_header_t *hdr = getHeader(msg);
-    uint8_t footerLen = (hdr->flags & NUM_ENTRIES_FLAG) * sizeof(linkest_header_t);
-    void* payload = call SubPacket.getPayload(msg, len + footerLen);
+    void* payload = call SubPacket.getPayload(msg, len +  sizeof(linkest_header_t));
     if (payload != NULL) {
       payload += sizeof(linkest_header_t);
     }