Commit Graph
325 Commits
Author SHA1 Message Date
Olaf Bergmann f48ecd9f2d replaced CoAP option Token by new encoding 2013-01-11 17:44:49 +01:00
Olaf Bergmann cd10925056 modified option parser 2013-01-11 11:32:22 +01:00
Olaf Bergmann 019a922918 document known bugs 2013-01-07 17:48:09 +01:00
Olaf Bergmann c6412f2038 Rework of option parser to support "Klaus encoding" (coap-13), unit tests
The subdirectory "tests" now contains a growing set of unit tests for the
libcoap API. To use this, you will need CUnit (see http://cunit.sourceforge.net)
and must configure with the option --with-tests.
2013-01-07 17:37:49 +01:00
Olaf Bergmann 8157c0b43e Merge commit 'c1452c3707af4735ac0e06470c331b566f6e8898' from Thomas Poetsch 2012-12-02 16:34:12 +01:00
Thomas Pötsch c1452c3707 fixed query filter for href attribute with leading "/" 2012-11-22 13:47:55 +01:00
Olaf Bergmann 355a743030 added ChangeLog to dist files 2012-11-20 13:38:09 +01:00
Olaf Bergmann d9eb6dc70e new version number for coap-12 2012-11-20 13:03:49 +01:00
Olaf Bergmann ae4cb93619 debug code cleanup 2012-11-20 13:02:59 +01:00
Olaf Bergmann 624159aa7c bugfix 2012-11-20 12:55:57 +01:00
Olaf Bergmann 8bfc00481a coap-12: option type numbers, option jumps and length coding 2012-11-20 12:24:15 +01:00
Olaf Bergmann 864585b6f0 debug studd removed 2012-11-03 17:23:31 +01:00
Olaf Bergmann 20e0e490ed bugfix
make sure that only URI segments are treated in coap_hash_request_uri()
2012-11-03 17:19:51 +01:00
Olaf Bergmann c45cf23a61 new option encoding function 2012-10-25 18:18:49 +02:00
Olaf Bergmann d7af1a6223 parse header in a more portable way 2012-10-23 23:08:37 +02:00
Olaf Bergmann a662f739e1 Merge commit '6464da5f72ccfbe45301d20f3da555cc55ac9903' 2012-10-23 21:27:52 +02:00
Olaf Bergmann 3ba98be84a Merge commit 'b00ec19da381e1671050380ec418794cff91781e' 2012-10-23 21:27:39 +02:00
Olaf Bergmann 8e19e0a594 Merge commit '1a9ddbde0c87f4354020a2e220d31e49d5e96134' 2012-10-23 21:27:09 +02:00
Markus Becker 6464da5f72 Also output the value for 0 length values. Improved output of option values. 2012-09-27 16:12:37 +02:00
Markus Becker b00ec19da3 Correct type description for port in comment. 2012-09-27 16:11:45 +02:00
Markus Becker 1a9ddbde0c Fixed double option entry for -A. Added examples to the usage string. 2012-09-27 14:09:07 +02:00
Thomas Pötsch dc81c404b3 fixed memory leak for async response in server.c 2012-09-20 16:52:09 +02:00
Thomas Pötsch fb657380c0 fix increment compiler warning 2012-09-19 16:18:01 +02:00
Thomas Pötsch 45b76ec304 fixed memory leak in coap_free_context() exhibited in example server 2012-09-19 16:17:18 +02:00
Thomas Pötsch f64a8390e7 fixed typo in coap_resource_t 2012-08-29 11:43:49 +02:00
Olaf Bergmann ffe15e96ae added missing header files for target dist 2012-08-12 14:48:45 +02:00
Olaf Bergmann 8060510d44 bugfix in AC_CHECK_FUNCS: removed misplaced comma 2012-07-18 14:05:58 +02:00
Olaf Bergmann ce9990996b fixed Location-Path in hnd_post_rd() 2012-07-17 19:00:56 +02:00
Olaf Bergmann fd8c499457 bugfix: Anomalies in query filtering - ID: 3540203 (patch from John Sucaet) 2012-07-17 16:33:42 +02:00
Olaf Bergmann 799edd524c bugfix: Memory leaks in rd.c - ID: 3542467 (patch from John Sucaet) 2012-07-17 14:44:10 +02:00
Olaf Bergmann 70300f82b1 fixed off-by-one error in net.c - ID: 3542515 (applied patch from John Sucaet) 2012-07-11 13:19:12 +02:00
Olaf Bergmann e3c81ec1b6 partially fixed bug invalid reads in option.c - ID: 3538692
applied patch provided by John Sucaet
small fix in coap_read() to avoid potential crashes
2012-07-05 16:56:40 +02:00
Olaf Bergmann a3f8fdaa59 split proxy uri to multiple options when exceeding 270 bytes 2012-07-04 15:58:21 +02:00
Olaf Bergmann dc04333820 bugfix: support option length > 255 2012-07-04 15:56:01 +02:00
Olaf Bergmann aebd41b54a explicit port not supported in proxy option - ID: 3526542 (patch provided by John Sucaet)
do not include Uri-Host when Proxy-Uri is present
2012-07-04 14:03:32 +02:00
Olaf Bergmann 1c9bd4ca4e fixed Memory leak in client.c - ID: 3538646 (patch by John Sucaet) 2012-06-29 11:25:40 +02:00
Olaf Bergmann 3645d6b535 fixed Wrong prototype in client.c - ID: 3538627 (patch by John Sucaet) 2012-06-29 11:22:29 +02:00
Olaf Bergmann 25e6806798 fixed inconsistency when sendto returns an error - ID: 3538391 (patch by John Sucaet) 2012-06-29 11:12:33 +02:00
Olaf Bergmann 2af20755eb fixed Observe counter 2012-06-07 15:31:49 +02:00
Olaf Bergmann 48bbed7aab removed auto-generated attribute "obs" 2012-06-07 15:16:31 +02:00
Olaf Bergmann e35a1216f8 re-apply fix for timer calculation 2012-06-07 15:12:44 +02:00
Thomas Poetsch 695f04a5f9 add observe to example server 2012-06-07 12:24:21 +02:00
Olaf Bergmann abf33c87f9 fixed bug #3526909 (Wrong unit conversion) pointed out by jsucaet
Applied patch provided by jsucaet.
2012-05-29 19:54:36 +02:00
Olaf Bergmann 28a6d45cde fixed bug #3524612 (Double free error when coap_send returns COAP_INVALID_TID)
From jsucaet's error description (Credits to Marc Haesen for revealing this bug):
The intent of the current code of coap_send is to release the allocated
memory upon success and not to release when an error has occured. However
this is broken (returning from coap_send with an error and a deallocated
pdu ptr is possible).
In the patch, I propose to let the calling function (of coap_send) be
responsible for free'ing the allocated pointer.
2012-05-29 19:41:22 +02:00
Olaf Bergmann 3d71f4ee64 use AC_CHECK_FUNC to check for strnlen() 2012-05-11 13:46:54 +02:00
Olaf Bergmann 77e5966c17 bugfix: set M bit correctly (reported by Denis Froschauer) 2012-05-10 18:34:47 +02:00
Olaf Bergmann a30621493f bugfix (Thanks to John Sucaet) 2012-04-18 12:45:27 +02:00
Olaf Bergmann 7aa393ff65 bugfix (Thanks to John Sucaet) 2012-04-18 12:29:41 +02:00
Olaf Bergmann c98a084626 configure options to throw out block, observe, and query-filter 2012-04-18 12:11:41 +02:00
Olaf Bergmann d80bf8ff24 bugfix (thanks to Pierre Caillot) 2012-04-05 15:11:02 +02:00