Jiewen Tan | 7a56d1c | 2015-01-26 23:26:51 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
laqinfan | 3573185 | 2017-08-08 06:17:39 -0500 | [diff] [blame^] | 3 | * Copyright (c) 2014-2018, The University of Memphis, |
Jiewen Tan | 7a56d1c | 2015-01-26 23:26:51 -0800 | [diff] [blame] | 4 | * 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/>. |
| 20 | **/ |
| 21 | |
| 22 | #ifndef NLSR_TLV_NLSR_HPP |
| 23 | #define NLSR_TLV_NLSR_HPP |
| 24 | |
| 25 | #include <ndn-cxx/encoding/tlv.hpp> |
| 26 | |
Nick Gordon | d0a7df3 | 2017-05-30 16:44:34 -0500 | [diff] [blame] | 27 | namespace ndn { |
| 28 | namespace tlv { |
Jiewen Tan | 7a56d1c | 2015-01-26 23:26:51 -0800 | [diff] [blame] | 29 | namespace nlsr { |
| 30 | |
Nick Gordon | d0a7df3 | 2017-05-30 16:44:34 -0500 | [diff] [blame] | 31 | /*! The TLV block types that NLSR uses to encode/decode LSA types. The |
| 32 | * way NLSR encodes LSAs to TLV is by encoding each element of the |
| 33 | * LSA as a separate TLV block. So, block types are needed. These are |
| 34 | * used in the LSDB Status Dataset. |
| 35 | */ |
Jiewen Tan | 7a56d1c | 2015-01-26 23:26:51 -0800 | [diff] [blame] | 36 | enum { |
| 37 | LsaInfo = 128, |
| 38 | OriginRouter = 129, |
| 39 | SequenceNumber = 130, |
| 40 | AdjacencyLsa = 131, |
| 41 | Adjacency = 132, |
| 42 | CoordinateLsa = 133, |
| 43 | Double = 134, |
| 44 | HyperbolicRadius = 135, |
| 45 | HyperbolicAngle = 136, |
| 46 | NameLsa = 137, |
| 47 | LsdbStatus = 138, |
| 48 | ExpirationPeriod = 139, |
| 49 | Cost = 140, |
laqinfan | 3573185 | 2017-08-08 06:17:39 -0500 | [diff] [blame^] | 50 | Uri = 141, |
| 51 | Destination = 142, |
| 52 | NextHop = 143, |
| 53 | RoutingTable = 144, |
| 54 | RouteTableEntry = 145 |
Jiewen Tan | 7a56d1c | 2015-01-26 23:26:51 -0800 | [diff] [blame] | 55 | }; |
| 56 | |
| 57 | } // namespace nlsr |
| 58 | } // namespace tlv |
| 59 | } // namespace ndn |
| 60 | |
| 61 | #endif // NLSR_TLV_NLSR_HPP |