X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fctp%2FCtpRoutingEngineP.nc;h=7c8810302b35322bda842609ddf59ae6532f7414;hb=da0cfeda9689aa64cfce0aa209f51803dcb11c21;hp=fb8aad78ff98ca9fba238a9c897b96cbd710185f;hpb=594acbf436f5f78611348f7763a89c84f38ba46a;p=tinyos-2.x.git diff --git a/tos/lib/net/ctp/CtpRoutingEngineP.nc b/tos/lib/net/ctp/CtpRoutingEngineP.nc index fb8aad78..7c881030 100644 --- a/tos/lib/net/ctp/CtpRoutingEngineP.nc +++ b/tos/lib/net/ctp/CtpRoutingEngineP.nc @@ -207,7 +207,7 @@ implementation { routeInfoInit(&routeInfo); routingTableInit(); my_ll_addr = call AMPacket.address(); - beaconMsg = call BeaconSend.getPayload(&beaconMsgBuffer); + beaconMsg = call BeaconSend.getPayload(&beaconMsgBuffer, call BeaconSend.maxPayloadLength()); maxLength = call BeaconSend.maxPayloadLength(); dbg("TreeRoutingCtl","TreeRouting initialized. (used payload:%d max payload:%d!\n", sizeof(beaconMsg), maxLength); @@ -454,7 +454,7 @@ implementation { ctp_routing_header_t* getHeader(message_t* m) { - return (ctp_routing_header_t*)call BeaconReceive.getPayload(m, NULL); + return (ctp_routing_header_t*)call BeaconSend.getPayload(m, call BeaconSend.maxPayloadLength()); }