blob: cf5871ab636b859c8106643f639846450969b54a [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;
36 public static final int MAXAREAADDRESS = 0;
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053037 public static final int SYSTEMIDLENGTH = 0;
sunishvka1dfc3e2016-04-16 12:24:47 +053038 public static final int PROTOCOLSUPPORTED = 204;
39 public static final int LOCALCIRCUITIDFORP2P = 130;
40 public static final int P2PHELLOHEADERLENGTH = 20;
41 public static final int HELLOHEADERLENGTH = 27;
42 public static final int CSNPDUHEADERLENGTH = 33;
43 public static final int PSNPDUHEADERLENGTH = 17;
44 public static final int PDULENGTHPOSITION = 17;
45 public static final int COMMONHEADERLENGTH = 8;
46 public static final int LSPMAXAGE = 1200;
47 public static final int LSPREFRESH = 900;
48 public static final int MAXSEQUENCENUMBER = Integer.MAX_VALUE;
49 public static final int STARTLSSEQUENCENUM = 1;
50 public static final int LENGTHPOSITION = 8;
51 public static final int RESERVEDPOSITION = 6;
52 public static final int CHECKSUMPOSITION = 24;
53 public static final String REFRESHLSP = "refreshLsp";
54 public static final String MAXAGELSP = "maxAgeLsp";
tejeshwer degala3fe1ed52016-04-22 17:04:01 +053055 public static final String DEFAULTLANID = "0000.0000.0000.00";
56 public static final String PROCESSESID = "processId";
57 public static final String INTERFACE = "interface";
58 public static final String INTERFACEIP = "interfaceIp";
59 public static final String NETWORKMASK = "networkMask";
60 public static final String INTERFACEINDEX = "interfaceIndex";
61 public static final String INTERMEDIATESYSTEMNAME = "intermediateSystemName";
62 public static final String SYSTEMID = "systemId";
63 public static final String LANID = "lanId";
64 public static final String IDLENGTH = "idLength";
65 public static final String MAXAREAADDRESSES = "maxAreaAddresses";
66 public static final String RESERVEDPACKETCIRCUITTYPE = "reservedPacketCircuitType";
67 public static final String CIRCUITID = "circuitId";
68 public static final String NETWORKTYPE = "networkType";
69 public static final String AREAADDRESS = "areaAddress";
70 public static final String AREALENGTH = "areaLength";
71 public static final String LSPID = "lspId";
72 public static final String HOLDINGTIME = "holdingTime";
73 public static final String HELLOINTERVAL = "helloInterval";
74 public static final String PRIORITY = "priority";
75 public static final String MACADDRESS = "macAddress";
sunishvka1dfc3e2016-04-16 12:24:47 +053076
77 /**
78 * Non parameterized constructor.
79 */
80 private IsisConstants() {
81 }
82}