Commit Graph
12 Commits
Author SHA1 Message Date
Olaf Bergmann 3e47b66c29 increased size of argument type to support large option numbers
Note that the bit field for filters would grow very large if
COAP_MAX_OPT is set to larger values.
2013-09-03 14:11:24 +02:00
Olaf Bergmann 8b8c3d9ac9 more fixes for option iterator
Renamed option in struct coap_opt_iterator_t to next_option to detect
errors.
2013-01-21 17:25:36 +01:00
Olaf Bergmann 48c96cb7a8 bugfix: do not return options with numbers that exceed the filter
The iterator object now distinguishes between "not filtered" (using
COAP_OPT_ALL which is now set to NULL) and an explicit filter. When
filtering is used, only options between 0 and COAP_MAX_OPT can be
filtered from the option set. Use COAP_OPT_ALL for anything beyond
COAP_MAX_OPT.
2013-01-18 13:46:31 +01:00
Olaf Bergmann 6026c35b41 option accessor functions, improved option iterator
Removed any occurrence of option jumps from coap-12,
option iterator:
  - bad bit to track iterator status
  - option now points to the next field, the current
    option is delivered by coap_options_next()
2013-01-18 12:24:47 +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 8bfc00481a coap-12: option type numbers, option jumps and length coding 2012-11-20 12:24:15 +01:00
Olaf Bergmann c45cf23a61 new option encoding function 2012-10-25 18:18:49 +02:00
Olaf Bergmann dc04333820 bugfix: support option length > 255 2012-07-04 15:56:01 +02:00
Olaf Bergmann 79e468b780 make COAP_OPT_LENGTH() return an unsigned int 2012-03-21 16:38:36 +01:00
Olaf Bergmann 854724f622 Fixed alignment issues for coap_opt_t (now use unsigned char *) 2011-07-28 17:26:31 +02:00
Olaf Bergmann 832f4b58fd Use pointers in macros for handling of PDU options. 2011-06-13 02:27:37 +02:00
Olaf Bergmann 852055628f Improved options processing with coap_opt_iterator_t 2011-06-02 02:40:42 +02:00