fix max message length handling - exclude the header
[project/ubus.git] / ubusmsg.h
index 116351d4ec2d3739a74251548a11d6d501cd3f03..a34b341c3534aab33df7f25cedbcbbabddf42b07 100644 (file)
--- a/ubusmsg.h
+++ b/ubusmsg.h
@@ -6,7 +6,7 @@
 
 #define __packetdata __attribute__((packed)) __attribute__((__aligned__(4)))
 
-#define UBUS_MAX_MSGLEN        65535
+#define UBUS_MAX_MSGLEN        65536
 
 #define UBUS_SYSTEM_OBJECT_EVENT       1
 #define UBUS_SYSTEM_OBJECT_MAX         1024