Make MTU configurable.

Use static or stack storage for coap_packet_t.
This commit is contained in:
jcmichelou committed 2017-06-26 17:34:01 +02:00
1 parent 6e97dbafcf
commit b2fe4a64de
29 files changed
+303 -165

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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;
}
+2 -2
View File
@@ -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;