-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d675b44
commit d4e068b
Showing
1 changed file
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
From 56dd59b911055fa045738d74e9aa5089dc37a0e5 Mon Sep 17 00:00:00 2001 | ||
From: Lotte Steenbrink <lotte@zombietetris.de> | ||
Date: Tue, 17 Mar 2015 10:42:02 -0700 | ||
Subject: [PATCH] increment MAX_SEGMENTS | ||
From a9ac5cc1f075b8d42cff1dc4b8f4967c755e2303 Mon Sep 17 00:00:00 2001 | ||
From: Lotte Steenbrink <lotte.steenbrink@fu-berlin.de> | ||
Date: Tue, 31 Mar 2015 05:54:31 +0200 | ||
Subject: [PATCH] patchy patch patch | ||
|
||
--- | ||
coap.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
coap.h | 5 +++++ | ||
1 file changed, 5 insertions(+) | ||
|
||
diff --git a/coap.h b/coap.h | ||
index 9090285..6839846 100644 | ||
index 9090285..7bea5f1 100644 | ||
--- a/coap.h | ||
+++ b/coap.h | ||
@@ -131,7 +131,7 @@ typedef enum | ||
@@ -131,7 +131,12 @@ typedef enum | ||
/////////////////////// | ||
|
||
typedef int (*coap_endpoint_func)(coap_rw_buffer_t *scratch, const coap_packet_t *inpkt, coap_packet_t *outpkt, uint8_t id_hi, uint8_t id_lo); | ||
-#define MAX_SEGMENTS 2 // 2 = /foo/bar, 3 = /foo/bar/baz | ||
+#define MAX_SEGMENTS 3 // 2 = /foo/bar, 3 = /foo/bar/baz | ||
+/* To increase COAP_MAX_SEGMENTS, set CFLAGS to -DCOAP_MAX_SEGMENTS=<your value>. */ | ||
+#ifndef COAP_MAX_SEGMENTS | ||
#define MAX_SEGMENTS 2 // 2 = /foo/bar, 3 = /foo/bar/baz | ||
+#else | ||
+#define MAX_SEGMENTS (COAP_MAX_SEGMENTS) | ||
+#endif | ||
typedef struct | ||
{ | ||
int count; | ||
-- | ||
1.9.1 | ||
|
||
2.1.0 |