mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18799 from JKRhb/coap-opt-numbers
sys/net: add Size1 and Size2 option numbers
This commit is contained in:
commit
aa11a9a0d7
@ -51,8 +51,32 @@ extern "C" {
|
||||
#define COAP_OPT_LOCATION_QUERY (20)
|
||||
#define COAP_OPT_BLOCK2 (23)
|
||||
#define COAP_OPT_BLOCK1 (27)
|
||||
/**
|
||||
* @brief Size2 option
|
||||
*
|
||||
* Used by clients to request an estimate of a resource's
|
||||
* total size from a server during block-wise transfer and by
|
||||
* servers to inform clients about the size.
|
||||
*
|
||||
* @see [RFC 7959](https://datatracker.ietf.org/doc/html/rfc7959)
|
||||
* @see [RFC 8613](https://datatracker.ietf.org/doc/html/rfc8613)
|
||||
*/
|
||||
#define COAP_OPT_SIZE2 (28)
|
||||
#define COAP_OPT_PROXY_URI (35)
|
||||
#define COAP_OPT_PROXY_SCHEME (39)
|
||||
/**
|
||||
* @brief Size1 option
|
||||
*
|
||||
* Used by clients to give servers an estimate of the total request
|
||||
* payload size during block-wise server and by servers to indicate
|
||||
* the maximum acceptable payload size in a 4.13 ("Request Entity
|
||||
* Too Large") response.
|
||||
*
|
||||
* @see [RFC 7252](https://datatracker.ietf.org/doc/html/rfc7252)
|
||||
* @see [RFC 7959](https://datatracker.ietf.org/doc/html/rfc7959)
|
||||
* @see [RFC 8613](https://datatracker.ietf.org/doc/html/rfc8613)
|
||||
*/
|
||||
#define COAP_OPT_SIZE1 (60)
|
||||
/**
|
||||
* @brief suppress CoAP response
|
||||
* @see [RFC 7968](https://datatracker.ietf.org/doc/html/rfc7967)
|
||||
|
Loading…
Reference in New Issue
Block a user