sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.isis.io.util; |
| 18 | |
tejeshwer degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 19 | import org.onlab.packet.Ip4Address; |
| 20 | |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 21 | /** |
Dhruv Dhody | e64b93e | 2016-04-20 19:26:55 +0530 | [diff] [blame] | 22 | * Representation of ISIS Constants. |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 23 | */ |
| 24 | public final class IsisConstants { |
tejeshwer degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 25 | public static final char PDU_LENGTH = 1497; |
| 26 | public static final char CONFIG_LENGTH = 1498; |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 27 | 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 degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 30 | public static final Ip4Address DEFAULTIP = Ip4Address.valueOf("0.0.0.0"); |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 31 | 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 vk | 4b5ce00 | 2016-05-09 20:18:35 +0530 | [diff] [blame] | 36 | public static final int PRIORITY = 0; |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 37 | public static final int MAXAREAADDRESS = 0; |
tejeshwer degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 38 | public static final int SYSTEMIDLENGTH = 0; |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 39 | 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 degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 56 | public static final String DEFAULTLANID = "0000.0000.0000.00"; |
| 57 | public static final String PROCESSESID = "processId"; |
| 58 | public static final String INTERFACE = "interface"; |
tejeshwer degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 59 | public static final String INTERFACEINDEX = "interfaceIndex"; |
| 60 | public static final String INTERMEDIATESYSTEMNAME = "intermediateSystemName"; |
| 61 | public static final String SYSTEMID = "systemId"; |
tejeshwer degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 62 | 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 degala | 3fe1ed5 | 2016-04-22 17:04:01 +0530 | [diff] [blame] | 66 | public static final String HOLDINGTIME = "holdingTime"; |
| 67 | public static final String HELLOINTERVAL = "helloInterval"; |
sunish vk | 7bdf4d4 | 2016-06-24 12:29:43 +0530 | [diff] [blame^] | 68 | public static final int PORT = 7000; |
| 69 | public static final String LSPADDED = "LSP_ADDED"; |
| 70 | public static final String LSPREMOVED = "LSP_REMOVED"; |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 71 | |
| 72 | /** |
| 73 | * Non parameterized constructor. |
| 74 | */ |
| 75 | private IsisConstants() { |
| 76 | } |
| 77 | } |