mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-13 03:40:40 +03:00
Make MTU configurable.
Use static or stack storage for coap_packet_t.
This commit is contained in:
1 parent
6e97dbafcf
commit
b2fe4a64de
29 files changed
+303
-165
No files matched your search
@@ -329,7 +329,7 @@ t_error_response8(void) {
|
||||
|
||||
static int
|
||||
t_error_response_tests_create(void) {
|
||||
pdu = coap_pdu_init(0, 0, 0, COAP_MAX_PDU_SIZE);
|
||||
pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_PDU_SIZE);
|
||||
|
||||
return pdu == NULL;
|
||||
}
|
||||
|
||||
+1
-1
@@ -622,7 +622,7 @@ t_encode_pdu11(void) {
|
||||
|
||||
static int
|
||||
t_pdu_tests_create(void) {
|
||||
pdu = coap_pdu_init(0, 0, 0, COAP_MAX_PDU_SIZE);
|
||||
pdu = coap_pdu_init(0, 0, 0, COAP_DEFAULT_PDU_SIZE);
|
||||
|
||||
return pdu == NULL;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ t_wellknown3(void) {
|
||||
coap_print_status_t result;
|
||||
int j;
|
||||
coap_resource_t *r;
|
||||
static char uris[2 * COAP_MAX_PDU_SIZE];
|
||||
static char uris[2 * COAP_DEFAULT_PDU_SIZE];
|
||||
unsigned char *uribuf = (unsigned char *)uris;
|
||||
unsigned char buf[40];
|
||||
size_t buflen = sizeof(buf);
|
||||
@@ -264,7 +264,7 @@ t_wkc_tests_create(void) {
|
||||
/* add resources to coap context */
|
||||
if (ctx && pdu) {
|
||||
coap_resource_t *r;
|
||||
static char _buf[2 * COAP_MAX_PDU_SIZE];
|
||||
static char _buf[2 * COAP_DEFAULT_PDU_SIZE];
|
||||
unsigned char *buf = (unsigned char *)_buf;
|
||||
int i;
|
||||
|
||||
|
||||
Reference in new issue
Block a user