aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/include
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2019-05-06 15:40:04 +0200
committerRickard Green <[email protected]>2019-05-06 15:40:04 +0200
commit0b2fdd2091d384078527b608e7d7c46ff7ea0412 (patch)
treec708262e3a0201e1344b623285ef8ac2d12cbd0a /lib/erl_interface/include
parentfb986dc7625ca16f769c42e6f9f14c2eec673d86 (diff)
parent3e898a8cdc87cadaa949960b7b042c5266c63791 (diff)
downloadotp-0b2fdd2091d384078527b608e7d7c46ff7ea0412.tar.gz
otp-0b2fdd2091d384078527b608e7d7c46ff7ea0412.tar.bz2
otp-0b2fdd2091d384078527b608e7d7c46ff7ea0412.zip
Merge branch 'maint'
* maint: Increase max number of node name characters to 256
Diffstat (limited to 'lib/erl_interface/include')
-rw-r--r--lib/erl_interface/include/ei.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/erl_interface/include/ei.h b/lib/erl_interface/include/ei.h
index ed0420300d..b138118f04 100644
--- a/lib/erl_interface/include/ei.h
+++ b/lib/erl_interface/include/ei.h
@@ -213,12 +213,12 @@ extern volatile int __erl_errno;
* library and when using the library we set a value that we use
*/
-#define EI_MAXHOSTNAMELEN 64
-#define EI_MAXALIVELEN 63
#define EI_MAX_COOKIE_SIZE 512
#define MAXATOMLEN (255 + 1)
#define MAXATOMLEN_UTF8 (255*4 + 1)
-#define MAXNODELEN EI_MAXALIVELEN+1+EI_MAXHOSTNAMELEN
+#define EI_MAXHOSTNAMELEN (MAXATOMLEN - 2)
+#define EI_MAXALIVELEN (MAXATOMLEN - 2)
+#define MAXNODELEN MAXATOMLEN
typedef enum {
ERLANG_ASCII = 1,