From 7457772ddc206bc7f4e68634d846f8909eaee60a Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 28 Jul 2010 00:14:41 +0200 Subject: [PATCH] bugfix: forgot to adjust size of transaction id after fixing the tid==0 bug --- pdu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdu.h b/pdu.h index df1141af..05871c08 100644 --- a/pdu.h +++ b/pdu.h @@ -126,7 +126,7 @@ typedef struct { unsigned int type:2; /* type flag */ unsigned int optcnt:4; /* number of options following the header */ unsigned int code:8; /* request method (value 1--10) or response code (value 40-255) */ - coap_tid_t id; /* transaction id */ + unsigned short id; /* transaction id */ } coap_hdr_t; #elif BYTE_ORDER == LITTLE_ENDIAN typedef struct { @@ -134,7 +134,7 @@ typedef struct { unsigned int type:2; /* type flag */ unsigned int version:2; /* protocol version */ unsigned int code:8; /* request method (value 1--10) or response code (value 40-255) */ - coap_tid_t id; /* transaction id (network byte order!) */ + unsigned short id; /* transaction id (network byte order!) */ } coap_hdr_t; #endif