mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 09:42:54 +03:00
bugfix: forgot to adjust size of transaction id
after fixing the tid==0 bug
This commit is contained in:
1 parent
7772ee7d33
commit
7457772ddc
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user