blob: f7eb99a1a9924917956d25334997c8311fc572e5 [file] [log] [blame]
sunishvka1dfc3e2016-04-16 12:24:47 +05301/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.isis.io.util;
18
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053019import org.onlab.packet.Ip4Address;
20
sunishvka1dfc3e2016-04-16 12:24:47 +053021/**
Dhruv Dhodye64b93e2016-04-20 19:26:55 +053022 * Representation of ISIS Constants.
sunishvka1dfc3e2016-04-16 12:24:47 +053023 */
24public final class IsisConstants {
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053025 public static final char PDU_LENGTH = 1497;
26 public static final char CONFIG_LENGTH = 1498;
sunishvka1dfc3e2016-04-16 12:24:47 +053027 public static final int MINIMUM_FRAME_LEN = 1521;
28 public static final int METADATA_LEN = 7;
29 public static final String SHOST = "127.0.0.1";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053030 public static final Ip4Address DEFAULTIP = Ip4Address.valueOf("0.0.0.0");
sunishvka1dfc3e2016-04-16 12:24:47 +053031 public static final int SPORT = 3000;
32 public static final byte L2 = 1;
33 public static final int IRPDISCRIMINATOR = 131;
34 public static final int ISISVERSION = 1;
35 public static final int RESERVED = 0;
sunish vk4b5ce002016-05-09 20:18:35 +053036 public static final int PRIORITY = 0;
sunishvka1dfc3e2016-04-16 12:24:47 +053037 public static final int MAXAREAADDRESS = 0;
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053038 public static final int SYSTEMIDLENGTH = 0;
sunishvka1dfc3e2016-04-16 12:24:47 +053039 public static final int PROTOCOLSUPPORTED = 204;
40 public static final int LOCALCIRCUITIDFORP2P = 130;
41 public static final int P2PHELLOHEADERLENGTH = 20;
42 public static final int HELLOHEADERLENGTH = 27;
43 public static final int CSNPDUHEADERLENGTH = 33;
44 public static final int PSNPDUHEADERLENGTH = 17;
45 public static final int PDULENGTHPOSITION = 17;
46 public static final int COMMONHEADERLENGTH = 8;
47 public static final int LSPMAXAGE = 1200;
48 public static final int LSPREFRESH = 900;
49 public static final int MAXSEQUENCENUMBER = Integer.MAX_VALUE;
50 public static final int STARTLSSEQUENCENUM = 1;
51 public static final int LENGTHPOSITION = 8;
52 public static final int RESERVEDPOSITION = 6;
53 public static final int CHECKSUMPOSITION = 24;
54 public static final String REFRESHLSP = "refreshLsp";
55 public static final String MAXAGELSP = "maxAgeLsp";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053056 public static final String DEFAULTLANID = "0000.0000.0000.00";
57 public static final String PROCESSESID = "processId";
58 public static final String INTERFACE = "interface";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053059 public static final String INTERFACEINDEX = "interfaceIndex";
60 public static final String INTERMEDIATESYSTEMNAME = "intermediateSystemName";
61 public static final String SYSTEMID = "systemId";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053062 public static final String RESERVEDPACKETCIRCUITTYPE = "reservedPacketCircuitType";
63 public static final String CIRCUITID = "circuitId";
64 public static final String NETWORKTYPE = "networkType";
65 public static final String AREAADDRESS = "areaAddress";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053066 public static final String HOLDINGTIME = "holdingTime";
67 public static final String HELLOINTERVAL = "helloInterval";
sunish vk7bdf4d42016-06-24 12:29:43 +053068 public static final int PORT = 7000;
69 public static final String LSPADDED = "LSP_ADDED";
70 public static final String LSPREMOVED = "LSP_REMOVED";
sunishvka1dfc3e2016-04-16 12:24:47 +053071
72 /**
73 * Non parameterized constructor.
74 */
75 private IsisConstants() {
76 }
77}