[Tinyos-help] CTP data header size
Nouha Baccour
nouha.baccour at gmail.com
Sun Apr 12 09:44:36 PDT 2009
Hi,
I added some fields in the ctp_data_header_t and deleted the field etx.
The original size of CTP data header is 8 bytes, but due to added
fields, the size of the CTP data header becomes 9 bytes.
When I compile I have many errors related to the message_t structure, like:
-----------------------------------------------------------------------------------------------------------------------
/opt/tinyos-2.x/tos/types/message.h:14: redefinition of `nx_struct message_t'
/opt/tinyos-2.x/tos/types/message.h:14: warning: tag message_t shadows enclosing
struct/union/enum
---
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: In function
`getHeader':
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:301: warning:
passing arg
ument 1 of `SubPacket.getPayload' from incompatible pointer type
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: At top level:
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:313:
conflicting types fo
r `Send.send'
/opt/tinyos-2.x/tos/interfaces/Send.nc:64: previous declaration of `Send.send'
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc: In function
`Send.send':
---
/opt/tinyos-2.x/tos/lib/net/ctp/CtpForwardingEngineP.nc:323: warning:
passing arg
ument 1 of `Packet.setPayloadLength' from incompatible pointer type
-----------------------------------------------------------------------------------------------------------------------
I think that these errors come from the extra fields in the CTP data
header, Am I right?
If so, how can resolve this problem?
Thanks
Nouha
More information about the Tinyos-help
mailing list