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 | |
| 19 | /** |
Dhruv Dhody | e64b93e | 2016-04-20 19:26:55 +0530 | [diff] [blame] | 20 | * Representation of ISIS Constants. |
sunishvk | a1dfc3e | 2016-04-16 12:24:47 +0530 | [diff] [blame] | 21 | */ |
| 22 | public final class IsisConstants { |
| 23 | public static final char PDU_LENGTH = 1497; // mtu (1500) - (3) LLC |
| 24 | public static final int MINIMUM_FRAME_LEN = 1521; |
| 25 | public static final int METADATA_LEN = 7; |
| 26 | public static final String SHOST = "127.0.0.1"; |
| 27 | public static final int SPORT = 3000; |
| 28 | public static final byte L2 = 1; |
| 29 | public static final int IRPDISCRIMINATOR = 131; |
| 30 | public static final int ISISVERSION = 1; |
| 31 | public static final int RESERVED = 0; |
| 32 | public static final int MAXAREAADDRESS = 0; |
| 33 | public static final int IDLENGTH = 0; |
| 34 | public static final int PROTOCOLSUPPORTED = 204; |
| 35 | public static final int LOCALCIRCUITIDFORP2P = 130; |
| 36 | public static final int P2PHELLOHEADERLENGTH = 20; |
| 37 | public static final int HELLOHEADERLENGTH = 27; |
| 38 | public static final int CSNPDUHEADERLENGTH = 33; |
| 39 | public static final int PSNPDUHEADERLENGTH = 17; |
| 40 | public static final int PDULENGTHPOSITION = 17; |
| 41 | public static final int COMMONHEADERLENGTH = 8; |
| 42 | public static final int LSPMAXAGE = 1200; |
| 43 | public static final int LSPREFRESH = 900; |
| 44 | public static final int MAXSEQUENCENUMBER = Integer.MAX_VALUE; |
| 45 | public static final int STARTLSSEQUENCENUM = 1; |
| 46 | public static final int LENGTHPOSITION = 8; |
| 47 | public static final int RESERVEDPOSITION = 6; |
| 48 | public static final int CHECKSUMPOSITION = 24; |
| 49 | public static final String REFRESHLSP = "refreshLsp"; |
| 50 | public static final String MAXAGELSP = "maxAgeLsp"; |
| 51 | |
| 52 | /** |
| 53 | * Non parameterized constructor. |
| 54 | */ |
| 55 | private IsisConstants() { |
| 56 | } |
| 57 | } |