From: gnawali Date: Tue, 13 Nov 2007 08:36:29 +0000 (+0000) Subject: ascii graphics that shows how we get to the head of the footer X-Git-Tag: release_tinyos_2_1_0_0~662 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=89852a0608cecc887ff3833528276cb90032783d;hp=a2604c3e6df65562e5c8bc74f059cb832a5f9150;p=tinyos-2.x.git ascii graphics that shows how we get to the head of the footer --- diff --git a/tos/lib/net/le/LinkEstimatorP.nc b/tos/lib/net/le/LinkEstimatorP.nc index c18e9f19..57bd8e87 100644 --- a/tos/lib/net/le/LinkEstimatorP.nc +++ b/tos/lib/net/le/LinkEstimatorP.nc @@ -649,6 +649,20 @@ implementation { } } + + /* Graphical explanation of how we get to the head of the + * footer in the following code + * <---------------------- payloadLen -------------------> + * ------------------------------------------------------- + * linkest_header_t | payload | linkest_footer_t* ...| + * ------------------------------------------------------- + * ^ ^ ^ + * | | | + * subpayload | payloadEnd + * | + * payloadEnd - footersize*num footers + */ + if ((nidx != INVALID_RVAL) && (num_entries > 0)) { uint8_t payloadLen = call SubPacket.payloadLength(msg); void* subPayload = call SubPacket.getPayload(msg, payloadLen);