ForwardingFlags: Added ForwardingFlags class and use it in registerPrefix and ForwardingEntry instead of int flags.
diff --git a/tests/test-encode-decode-forwarding-entry.cpp b/tests/test-encode-decode-forwarding-entry.cpp
index fe34c04..152b79f 100644
--- a/tests/test-encode-decode-forwarding-entry.cpp
+++ b/tests/test-encode-decode-forwarding-entry.cpp
@@ -77,11 +77,26 @@
cout << forwardingEntry.getFaceId() << endl;
else
cout << "<none>" << endl;
- cout << "forwardingFlags: ";
- if (forwardingEntry.getForwardingFlags() >= 0)
- cout << forwardingEntry.getForwardingFlags() << endl;
- else
- cout << "<none>" << endl;
+
+ cout << "forwardingFlags:";
+ if (forwardingEntry.getForwardingFlags().getActive())
+ cout << " active";
+ if (forwardingEntry.getForwardingFlags().getChildInherit())
+ cout << " childInherit";
+ if (forwardingEntry.getForwardingFlags().getAdvertise())
+ cout << " advertise";
+ if (forwardingEntry.getForwardingFlags().getLast())
+ cout << " last";
+ if (forwardingEntry.getForwardingFlags().getCapture())
+ cout << " capture";
+ if (forwardingEntry.getForwardingFlags().getLocal())
+ cout << " local";
+ if (forwardingEntry.getForwardingFlags().getTap())
+ cout << " tap";
+ if (forwardingEntry.getForwardingFlags().getCaptureOk())
+ cout << " captureOk";
+ cout << endl;
+
cout << "freshnessSeconds: ";
if (forwardingEntry.getFreshnessSeconds() >= 0)
cout << forwardingEntry.getFreshnessSeconds() << endl;