blob: b340126cda94783ffbfcc62d98149202a7669483 [file] [log] [blame]
mohamed rahile04626f2016-04-05 20:42:53 +05301/*
2 * Copyright 2016 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 */
16package org.onosproject.isis.io.isispacket.tlv;
17
18/**
19 * Represents various values for TLV types.
20 */
21public enum TlvType {
22 AREAADDRESS(1),
23 ISREACHABILITY(2),
24 ISNEIGHBORS(6),
25 PADDING(8),
26 LSPENTRY(9),
27 AUTHENTICATION(10),
28 CHECKSUM(12),
29 EXTENDEDISREACHABILITY(22),
30 ISALIAS(24),
31 IPINTERNALREACHABILITY(128),
32 PROTOCOLSUPPORTED(129),
33 IPEXTERNALREACHABILITY(130),
34 IDRPINFORMATION(131),
35 IPINTERFACEADDRESS(132);
36
37 private int value;
38
39 /**
40 * Sets the TLV type value.
41 * @param value value.
42 */
43 TlvType(int value) {
44 this.value = value;
45 }
46
47 /**
48 * Gets value.
49 * @return value
50 */
51 public int value() {
52 return value;
53 }
54}