management: Implementing nrd::PrefixRegOptions for NRD Face management protocol
Also in this commit fixes to nfd::FibManagementOptions data structure.
Change-Id: I1ade7df6a18798d9d0881c66a238b0ea84680623
diff --git a/tests/management/test-nfd-control.cpp b/tests/management/test-nfd-control.cpp
index c41844a..79b4d39 100644
--- a/tests/management/test-nfd-control.cpp
+++ b/tests/management/test-nfd-control.cpp
@@ -26,7 +26,7 @@
const uint8_t TestFibManagementOptions[] = {
0x68, 0x1e, 0x07, 0x16, 0x08, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x68,
0x6f, 0x73, 0x74, 0x08, 0x03, 0x72, 0x65, 0x67, 0x08, 0x04, 0x74, 0x65,
- 0x73, 0x74, 0x69, 0x01, 0x00, 0x6a, 0x01, 0x00
+ 0x73, 0x74, 0x69, 0x01, 0x00, 0x6a, 0x01, 0x01
};
const uint8_t TestFaceManagementOptions[] = {
@@ -65,7 +65,7 @@
opt.setName (n);
opt.setFaceId (0);
- opt.setCost (0);
+ opt.setCost (1);
const Block& blk = opt.wireEncode ();
@@ -81,7 +81,7 @@
opt.setName (n);
opt.setFaceId (0);
- opt.setCost (0);
+ opt.setCost (1);
EncodingBuffer blk;
@@ -110,7 +110,7 @@
BOOST_CHECK_EQUAL (opt.getName (), n);
BOOST_CHECK_EQUAL (opt.getFaceId (), 0);
- BOOST_CHECK_EQUAL (opt.getCost (), 0);
+ BOOST_CHECK_EQUAL (opt.getCost (), 1);
}
BOOST_AUTO_TEST_CASE (FaceManagementOptionsFastEncoding)