Router: Validate tunnel ID in requests

Fix max ID
This commit is contained in:
zzz
2018-03-07 18:06:46 +00:00
parent ceac733b66
commit 7433eeb5c0
5 changed files with 16 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ import java.io.OutputStream;
public class TunnelId extends DataStructureImpl {
private long _tunnelId;
public static final long MAX_ID_VALUE = (1L << 32) - 2L;
public static final long MAX_ID_VALUE = 0xffffffffL;
public TunnelId() {
_tunnelId = -1;