peek: transform Link into ForwardingHint
refs #4055
Change-Id: I7b06e1882809ec9edde8447d82db2257431504a3
diff --git a/tools/peek/ndnpeek/ndnpeek.cpp b/tools/peek/ndnpeek/ndnpeek.cpp
index c9f89b2..372a419 100644
--- a/tools/peek/ndnpeek/ndnpeek.cpp
+++ b/tools/peek/ndnpeek/ndnpeek.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2016, Regents of the University of California,
+ * Copyright (c) 2014-2017, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -80,7 +80,7 @@
interest.setInterestLifetime(m_options.interestLifetime);
if (m_options.link != nullptr)
- interest.setLink(m_options.link->wireEncode());
+ interest.setForwardingHint(m_options.link->getDelegationList());
if (m_options.mustBeFresh)
interest.setMustBeFresh(true);