X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Fctp%2FCtp.h;h=fe5ad7e6336294d5b8fcd631a7ddf6f77f24c53e;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=b821fca88cce83a8fb3ca3bf905a2fd492766935;hpb=254090b8dfbfaf3c9611a75eb8c3ec25e502f1f7;p=tinyos-2.x.git diff --git a/tos/lib/net/ctp/Ctp.h b/tos/lib/net/ctp/Ctp.h index b821fca8..fe5ad7e6 100644 --- a/tos/lib/net/ctp/Ctp.h +++ b/tos/lib/net/ctp/Ctp.h @@ -57,6 +57,7 @@ enum { // CTP Options: CTP_OPT_PULL = 0x80, // TEP 123: P field CTP_OPT_ECN = 0x40, // TEP 123: C field + CTP_OPT_ALL = 0xff }; typedef nx_uint8_t nx_ctp_options_t; @@ -69,14 +70,14 @@ typedef nx_struct { nx_am_addr_t origin; nx_uint8_t originSeqNo; nx_collection_id_t type; - nx_uint8_t data[0]; + nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Ctp } ctp_data_header_t; typedef nx_struct { nx_ctp_options_t options; nx_am_addr_t parent; nx_uint16_t etx; - nx_uint8_t data[0]; + nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Ctp } ctp_routing_header_t; #endif