[Tinyos-devel] purpose of the Packet.clear() function

Miklos Maroti mmaroti at math.u-szeged.hu
Tue Oct 9 00:50:17 PDT 2007


Hi!

> I think the direction this discussion is going
> sounds right: currently, clear() is problematic as it clears the
> payload: rather than a deep clean, it should only apply to headers,
> footers, and metadata for the called layer and those below.

Agreed. I have always assumed that clear clears only the header,
footer and metadata. Why would anyone fill the payload with 0x00
bytes? The user knows the format of the payload.

Miklos


More information about the Tinyos-devel mailing list