encoding: add route origin for self-learning
Change-Id: I2f652ac889095ee9bb7c752e715cfecb41459fa4
refs: #4279
diff --git a/src/encoding/nfd-constants.cpp b/src/encoding/nfd-constants.cpp
index 0de5fe2..5c3189a 100644
--- a/src/encoding/nfd-constants.cpp
+++ b/src/encoding/nfd-constants.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
-/**
- * Copyright (c) 2013-2017 Regents of the University of California.
+/*
+ * Copyright (c) 2013-2018 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -115,6 +115,8 @@
routeOrigin = ROUTE_ORIGIN_AUTOCONF;
else if (iequals(s, "nlsr"))
routeOrigin = ROUTE_ORIGIN_NLSR;
+ else if (iequals(s, "selflearning"))
+ routeOrigin = ROUTE_ORIGIN_SELFLEARNING;
else if (iequals(s, "static"))
routeOrigin = ROUTE_ORIGIN_STATIC;
else {
@@ -158,6 +160,8 @@
return os << "autoconf";
case ROUTE_ORIGIN_NLSR:
return os << "nlsr";
+ case ROUTE_ORIGIN_SELFLEARNING:
+ return os << "selflearning";
case ROUTE_ORIGIN_STATIC:
return os << "static";
}