Replace ndnsType with NdnsContentType
Change-Id: I74afe92d31e78d80404816113063d7f996d666c5
diff --git a/src/ndns-enum.cpp b/src/ndns-enum.cpp
index 45504fb..383eb95 100644
--- a/src/ndns-enum.cpp
+++ b/src/ndns-enum.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014, Regents of the University of California.
+ * Copyright (c) 2014-2016, Regents of the University of California.
*
* This file is part of NDNS (Named Data Networking Domain Name Service).
* See AUTHORS.md for complete list of NDNS authors and contributors.
@@ -23,20 +23,26 @@
namespace ndns {
std::ostream&
-operator<<(std::ostream& os, const NdnsType ndnsType)
+operator<<(std::ostream& os, const NdnsContentType ndnsType)
{
switch (ndnsType) {
- case NDNS_RESP:
- os << "NDNS-Resp";
+ case NDNS_BLOB:
+ os << "BLOB";
+ break;
+ case NDNS_LINK:
+ os << "LINK";
break;
case NDNS_NACK:
- os << "NDNS-Nack";
+ os << "NACK";
+ break;
+ case NDNS_KEY:
+ os << "KEY";
break;
case NDNS_AUTH:
os << "NDNS-Auth";
break;
- case NDNS_RAW:
- os << "NDNS-Raw";
+ case NDNS_RESP:
+ os << "NDNS-Resp";
break;
default:
os << "UNKNOWN";