management: Finalizing LocalControlHeader implementation
IncomingFaceId and NextHopFaceId are now fully supported for specifying
to be efficiently sent towards the forwarding daemon, and to be
automatically decoded from incoming packet from the forwarding daemon.
The current implementation limits exactly one LocalControlHeader for
Interest/Data packet instance. This is not exactly correct (especially
inside NFD), where the same Interest is expected to have multiple
LocalControlHeader (for each individual local face). The following
commits will fix this problem.
Change-Id: Ia6b124ed12271136d071f4822f13634897ce3228
refs: #1170
diff --git a/src/encoding/tlv-nfd.hpp b/src/encoding/tlv-nfd.hpp
new file mode 100644
index 0000000..584f62a
--- /dev/null
+++ b/src/encoding/tlv-nfd.hpp
@@ -0,0 +1,45 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/*
+ * Copyright (c) 2013, Regents of the University of California
+ *
+ * BSD license, See the LICENSE file for more information
+ *
+ * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
+ */
+
+#ifndef NDN_TLV_NFD_HPP
+#define NDN_TLV_NFD_HPP
+
+namespace ndn {
+namespace tlv {
+namespace nfd {
+
+enum {
+ // ControlResponse
+ ControlResponse = 101,
+ StatusCode = 102,
+ StatusText = 103,
+
+ // FIB Management Protocol
+ FibManagementOptions = 104,
+ FaceId = 105,
+ Cost = 106,
+ Strategy = 107,
+
+ // Face Management Protocol
+ FaceManagementOptions = 108,
+ Uri = 114
+};
+
+enum {
+ // Local Control Header
+ LocalControlHeader = 80,
+ IncomingFaceId = 81,
+ NextHopFaceId = 82
+};
+
+} // namespace nfd
+} // namespace tlv
+} // namespace ndn
+
+#endif // NDN_TLV_NFD_HPP