From 89852a0608cecc887ff3833528276cb90032783d Mon Sep 17 00:00:00 2001 From: gnawali Date: Tue, 13 Nov 2007 08:36:29 +0000 Subject: [PATCH] ascii graphics that shows how we get to the head of the footer --- tos/lib/net/le/LinkEstimatorP.nc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- 2.39.2