blob: 224c452caf321f111d67fd1e308c07fee8a2bfb4 [file] [log] [blame]
Jiewen Tan7a56d1c2015-01-26 23:26:51 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Tianxing Ma9ea36392018-10-05 14:32:55 -05002/*
Davide Pesaventoc1d0e8e2022-06-15 14:26:02 -04003 * Copyright (c) 2014-2022, The University of Memphis,
Jiewen Tan7a56d1c2015-01-26 23:26:51 -08004 * Regents of the University of California,
5 * Arizona Board of Regents.
6 *
7 * This file is part of NLSR (Named-data Link State Routing).
8 * See AUTHORS.md for complete list of NLSR authors and contributors.
9 *
10 * NLSR is free software: you can redistribute it and/or modify it under the terms
11 * of the GNU General Public License as published by the Free Software Foundation,
12 * either version 3 of the License, or (at your option) any later version.
13 *
14 * NLSR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 * PURPOSE. See the GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along with
19 * NLSR, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Ashlesh Gawande0421bc62020-05-08 20:42:19 -070020 */
Jiewen Tan7a56d1c2015-01-26 23:26:51 -080021
22#ifndef NLSR_TLV_NLSR_HPP
23#define NLSR_TLV_NLSR_HPP
24
Davide Pesaventoc1d0e8e2022-06-15 14:26:02 -040025namespace nlsr::tlv {
Jiewen Tan7a56d1c2015-01-26 23:26:51 -080026
Nick Gordond0a7df32017-05-30 16:44:34 -050027/*! The TLV block types that NLSR uses to encode/decode LSA types. The
28 * way NLSR encodes LSAs to TLV is by encoding each element of the
29 * LSA as a separate TLV block. So, block types are needed. These are
30 * used in the LSDB Status Dataset.
31 */
Jiewen Tan7a56d1c2015-01-26 23:26:51 -080032enum {
Ashlesh Gawande0db4d4d2020-02-05 20:30:02 -080033 Lsa = 128,
34 SequenceNumber = 130,
35 AdjacencyLsa = 131,
36 Adjacency = 132,
37 CoordinateLsa = 133,
38 CostDouble = 134,
39 HyperbolicRadius = 135,
40 HyperbolicAngle = 136,
41 NameLsa = 137,
42 LsdbStatus = 138,
43 ExpirationTime = 139,
44 Cost = 140,
45 Uri = 141,
Ashlesh Gawande0db4d4d2020-02-05 20:30:02 -080046 NextHop = 143,
47 RoutingTable = 144,
Davide Pesaventoc1d0e8e2022-06-15 14:26:02 -040048 RoutingTableEntry = 145,
Jiewen Tan7a56d1c2015-01-26 23:26:51 -080049};
50
Davide Pesaventoc1d0e8e2022-06-15 14:26:02 -040051} // namespace nlsr::tlv
Jiewen Tan7a56d1c2015-01-26 23:26:51 -080052
53#endif // NLSR_TLV_NLSR_HPP