From 68ccb3a9445091e21dc4725e3b097681d04b2566 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Fri, 14 Sep 2012 13:53:36 +0000
Subject: [PATCH] cleanup

---
 router/java/src/net/i2p/data/i2np/I2NPMessage.java | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/router/java/src/net/i2p/data/i2np/I2NPMessage.java b/router/java/src/net/i2p/data/i2np/I2NPMessage.java
index 6dadbefae6..c714700f36 100644
--- a/router/java/src/net/i2p/data/i2np/I2NPMessage.java
+++ b/router/java/src/net/i2p/data/i2np/I2NPMessage.java
@@ -19,8 +19,17 @@ import net.i2p.data.DataStructure;
  * @author jrandom
  */
 public interface I2NPMessage extends DataStructure {
-    final long MAX_ID_VALUE = (1l<<32l)-1l;
-    final int MAX_SIZE = 64*1024; // insane
+
+    /** 4 bytes unsigned */
+    public static final long MAX_ID_VALUE = (1l << 32) - 1l;
+
+    /**
+     * Nominal limit, actual max is much less.
+     * See website docs for further restrictions due to
+     * various overhead and limitations in encryption,
+     * fragmentation, and the transports.
+     */
+    public static final int MAX_SIZE = 64*1024;
     
     /**
      * Read the body into the data structures, after the initial type byte, using
-- 
GitLab